-
Notifications
You must be signed in to change notification settings - Fork 157
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
Keys are not converted to strings #48
Comments
@pguillory Good catch. Were you planning on submitting a fix or shall I? |
Wait a second... this seems to be fixed in 8a78a2d, which I verified locally. What version are you on? |
Ouch, never mind. We're on 0.2.0. |
MockRedis 0.6.4 appears to convert keys to strings for #get and #set, but not for #expire and #ttl. > r = MockRedis.new
=> #<MockRedis:0x0000000b0c6ec0...>
> r.set :x, 1
=> "OK"
> r.get :x
=> "1"
> r.expire :x, 999
=> false
> r.expire 'x', 999
=> true
> r.ttl :x
=> -1
> r.ttl 'x'
=> 942 I guess I'll re-open this ticket rather than create a new one. Aiden, you're welcome to work on it. Otherwise I'll get on it later today. I'll touch base with you before starting. |
Fix will go out in 0.6.5. |
Redis converts keys to strings, whereas MockRedis does not.
Example:
The text was updated successfully, but these errors were encountered: