Pull request for adding hash based redis commands implementation in django-redis#41
Pull request for adding hash based redis commands implementation in django-redis#41danish-rehman wants to merge 15 commits intosebleier:masterfrom goibibo:master
Conversation
|
Hi sebleier, Thanks. |
|
Yeah +1 for this, though it should be noted that the maximum number of entries a hash can have while still being encoded efficiently is around 1000 according to this: http://instagram-engineering.tumblr.com/post/12202313862/storing-hundreds-of-millions-of-simple-key-value-pairs |
It's 2014, so you kinda do say no.
Redis backend has this feature, the library does not, so it essentially limits Redis's functionality. Hashes are useful to decrease cache entries and thus requests to cache drastically. |
|
is there any plan to get hash support in at some point or I should write my own? This is huge limitation |
|
@aleksandra-tarkowska for what it's worth, we've moved to https://github.com/niwinz/django-redis :-) |
|
thx, but I still don't see hset, except raw client ? |
|
@aleksandra-tarkowska yup, only raw client. Which does have hset and other stuff: http://redis-py.readthedocs.io/en/latest/ |
I have added hget, hset, hget_many, hset_many and hincr implementation. Please review it. Thanks.