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

Missing documentation on ByteStringSerializer parameters #17

Closed
ghost opened this issue Oct 18, 2013 · 2 comments
Closed

Missing documentation on ByteStringSerializer parameters #17

ghost opened this issue Oct 18, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2013

What are these parameters used for?

example:

def zrevrank[V: ByteStringSerializer](key: String, member: V): Future[Option[Long]]
def zrank[V: ByteStringSerializer](key: String, member: V): Future[Option[Long]]

What is expected to be used as the value for member?

@etaty
Copy link
Owner

etaty commented Oct 19, 2013

member is a parameter of type V who must have an implicit ByteStringSerializer
Rediscala come with some default serializer : https://github.com/etaty/rediscala/blob/master/src/main/scala/redis/Converter.scala#L102-L146
String, Short, Int, Long, Float, Double, Char, Byte, Array[Byte], ByteString

You can do your own serializer, see this example : https://github.com/etaty/rediscala-demo/blob/master/src/main/scala/ExampleByteStringFormatter.scala

I will try to improve the documentation. However, if you want to improve the documentation or add more example you can do some pull-requests

@ghost
Copy link
Author

ghost commented Oct 19, 2013

Thanks, closing

@ghost ghost closed this as completed Oct 19, 2013
This issue was closed.
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

No branches or pull requests

1 participant