We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm running into an issue when using a SET followed by a GET with integer keys. My productionredis-rb client handles this case.
SET
GET
redis-rb
[1] pry(main)> r = Redis.new; [2] pry(main)> r.set(123, 'yo') Redis (3.30ms) SET 123 yo => "OK" [3] pry(main)> r.get(123) Redis (0.65ms) GET 123 => "yo" [4] pry(main)> m = MockRedis.new; [5] pry(main)> m.set(123, 'yo') => "OK" [6] pry(main)> m.get(123) => nil
The key is converted into a string in the SET method, but not in the GET method
I'd be happy to submit a PR to change this behavior. Please let me know
The text was updated successfully, but these errors were encountered:
Thanks for the report, @okhwaja. Would love a pull request to make this consistent. Should be easy to add a test for, as well.
Sorry, something went wrong.
Fixed in #158. Thanks!
No branches or pull requests
Hi,
I'm running into an issue when using a
SET
followed by aGET
with integer keys. My productionredis-rb
client handles this case.The key is converted into a string in the
SET
method, but not in theGET
methodI'd be happy to submit a PR to change this behavior. Please let me know
The text was updated successfully, but these errors were encountered: