-
Notifications
You must be signed in to change notification settings - Fork 219
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
Added many cluster methods & improved testing #244
Conversation
58a7480
to
74bbf72
Compare
val commands = makeSortArgs(key, limit, desc, alpha, by, get) ::: List("STORE", storeAt) | ||
send("SORT", commands)(asLong) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is sort
part of SetOperations
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well you are right it should be some other part of api. Which one would you recommend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think BaseOperations
will be better ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved back :)
@@ -47,6 +53,22 @@ trait RedisClusterOps extends AutoCloseable { | |||
nodeForKey(key).withClient(body(_)) | |||
} | |||
|
|||
// todo: need Cats Semigroup instance for T to combine, add Cats? | |||
// https://typelevel.org/cats/typeclasses/semigroup.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the targets in this library was to keep it free of any dependencies. We could add cats
but then I would design the library in a different way using cats-effects
to model all effects ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. It is not a big deal at the moment but since most of the api is based on Option[A] it's difficult to model cluster api with Iterable[A] result to fit it.
To be honest I don't know what is best now :) I can delete the comment, however it will probably be a topic for further discussion at some point anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just left todo with a note, i hope its fine.
fb912e2
to
1d1a48d
Compare
I went carefully commit by commit to reduce changes. I reverted changes for |
bcf0c08
to
ba87939
Compare
I have removed breaking changes so I could put them all soon in another commit See the travis output here https://github.com/atais/scala-redis/commits/cluster-methods |
Hi again 😄
please merge after #246
Work in progress for tickets:
and continuation of #243
Added:
zscan
mentioned IllegalArgumentException: hostname can't be null #216