I work with Redis but I need best way to get keys from Redis .
I need search by range of date (2020-06-01 to 2020-06-20) for every company_id (id is unique)
example of keystat:company:2:date:2020-06-13
I think to solve problem i get key for every day but if need 200 numbers of key .
it take many times and i make some operation with value before display user .
i try use scan
& keys
Environment Ruby 2.7.0
, Ruby on Rails 6.0.3
Redis