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

fakeredis does not convert keys to strings like redis does #32

Closed
rancerbeta opened this issue Jan 6, 2014 · 1 comment
Closed

fakeredis does not convert keys to strings like redis does #32

rancerbeta opened this issue Jan 6, 2014 · 1 comment

Comments

@rancerbeta
Copy link

When using a tuple as a key, redis will use the string form of the tuple. Fakeredis returns the key as the original tuple.

Example:
import redis/fakeredis
import time
client = redis.StrictRedis()
client.zadd('test_set', time.time(), (1, 2, 3))
result = client.zrange('test_set', 0, 0)

result returns tuple in array [(1, 2, 3)] in fakeredis, but string in array ['(1, 2, 3)'] in Redis

@jamesls
Copy link
Owner

jamesls commented Jan 14, 2014

Should be fixed via 5cd4b18

@jamesls jamesls closed this as completed Jan 14, 2014
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

2 participants