Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

best way to get range of keys using specific pattern in Redis

$
0
0

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.3Redis


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>