redis / redis-rb

A Ruby client library for Redis
MIT License
3.96k stars 1.03k forks source link

Support `BIT/BYTE` for `bitcount` and `bitpos` for redis 7+ #1242

Closed fatkodima closed 9 months ago

fatkodima commented 9 months ago

Reference https://github.com/redis/redis-rb/issues/1187

Redis 7.0 release notes - https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES

I am not very happy with the bytes_range parameter name. Maybe you can suggest something better? Maybe use_bytes or offset_unit etc...

byroot commented 9 months ago

What about: scale: :bit or index: :byte?

fatkodima commented 9 months ago

👍 for :scale.