jazzband / django-redis

Full featured redis cache backend for Django.
Other
2.89k stars 429 forks source link

Add support for hashmaps #598

Open WisdomPill opened 2 years ago

WisdomPill commented 2 years ago

Problem Statement django-redis should introduce hasmaps and support basic operations, hset, hdel, hlen, hkeys and hexists.

Describe the solution you'd like Add an interface similar to redis-py to support hasps

YashKumarVerma commented 1 year ago

@WisdomPill is this one resolved or are we still looking for help here? I'm interested if its needed

WisdomPill commented 1 year ago

still looking for an implementation, #654 is a very good attempt at it on the sets side, if you want to propose a solution you're very welcome to do so 😄

LucianaAG commented 9 months ago

is available to work on this issue?

WisdomPill commented 9 months ago

Hello @LucianaAG I think @kysre is doing all right here, you can try to do something similar to his PR for sets maybe?

WisdomPill commented 9 months ago

support for hset, hlen, hdel, hkeys and hexists has been added thanks to the efforts of @kysre.

Things left to add to make it complete are.

any contribution is welcome, I consider this a beginner friendly issue

rootart commented 4 months ago

Hi, @WisdomPill I extended support for the missing hashmap functions and would appreciate your feedback when you have some spare time. HINCRYBYFLOAT is one of the functions that is missing and I think it would require a bit more work to implement given how we do the decoding/encoding of the values https://github.com/jazzband/django-redis/blob/master/django_redis/client/default.py#L509-L518 I worry if we explicitly store the float value it would come up as incompatible change. Let me know what are your thoughts on this and thanks again.