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

Client: only accept strings for sending commands #6

Open
inkel opened this issue Jul 14, 2013 · 0 comments
Open

Client: only accept strings for sending commands #6

inkel opened this issue Jul 14, 2013 · 0 comments

Comments

@inkel
Copy link
Owner

inkel commented Jul 14, 2013

Redis treats its input as strings, and any conversions will be done server side in any case. Example: the INCRBY key 2 command will be send to Redis like this:

*3\r\n$6\r\nINCRBY\r\n$3\r\nkey\r\n$1\r\n2\r\n

There's no need to force the users to cast as []interface{} the arguments sent when using Client.Send.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant