Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mset() and mget() accept variadic parameters #57

Merged

Conversation

OddKristensen
Copy link
Contributor

No description provided.

Copy link
Contributor

@Kazark Kazark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Chris'll have to tell us about whether private[this] makes sense.

val cmd = NEL("MGET", key.encode :: Nil)
RedisCtx[F].keyed(key, cmd)
}

def mget[F[_]: RedisCtx](key: String, keys: String*): F[List[Option[String]]] = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChristopherDavenport I told him that I thought this (head, tail*) pattern was necessary to disambiguate the overloads. Let me know if I'm wrong there.

@ChristopherDavenport
Copy link
Collaborator

private[this] is actually more private than private if my understanding serves this needs to be package private.

@Kazark
Copy link
Contributor

Kazark commented Aug 12, 2022

That makes sense.

@OddKristensen
Copy link
Contributor Author

private[this] is actually more private than private if my understanding serves this needs to be package private.

💯 , done.

@ChristopherDavenport ChristopherDavenport merged commit 899d42b into davenverse:main Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants