limpyd / redis-limpyd

Provide an easy way to store python objects in Redis, without losing the power and the control of the Redis API
https://redis-limpyd.readthedocs.org/
Do What The F*ck You Want To Public License
72 stars 11 forks source link

New feature: range indexes #98

Closed twidi closed 6 years ago

twidi commented 7 years ago

Could help in a lot of cases

See https://redis.io/topics/indexes

What we could do is, when saying a field is indexable is

But maybe not sufficient, we may want to specify a function to transform data before indexing in range: slugify for texts, big endian for numbers, etc. So maybe an "index_range_fn" argument which would accept a function taking the value as input and would return the indexable value.

twidi commented 6 years ago

Fixed in #101