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

add zMScore #354

Merged
merged 2 commits into from
Apr 19, 2021
Merged

add zMScore #354

merged 2 commits into from
Apr 19, 2021

Conversation

jxnu-liguobin
Copy link
Collaborator

close #351

Redis doc is Array reply: list of scores or nil associated with the specified member values (a double precision floating point number), represented as strings.
Chunk[Option[Double]]] is used, but I don't think it's the most suitable one. Does anyone have a better proposal?

@jxnu-liguobin jxnu-liguobin requested a review from a team as a code owner April 16, 2021 06:21
@hcwilhelm
Copy link
Contributor

close #351

Redis doc is Array reply: list of scores or nil associated with the specified member values (a double precision floating point number), represented as strings.
Chunk[Option[Double]]] is used, but I don't think it's the most suitable one. Does anyone have a better proposal?

I think this is totally fine as it reflects the Redis response. For every member that does not exist in the sorted set, a nil value is returned.

👍

Comment on lines 1000 to 1001
result <- zMScore(key, "Delhi", "Mumbai")
} yield assert(result)(equalTo(Chunk(Some(10d), Some(20d))))
Copy link
Member

Choose a reason for hiding this comment

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

I'd include the "non-existing" value here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good case 👍

@mijicd mijicd merged commit a83cbed into zio:master Apr 19, 2021
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.

Missing Command ZMSCORE
3 participants