Quantcast
Channel: StackExchange.Redis Scan x amount of keys - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Marc Gravell for StackExchange.Redis Scan x amount of keys

SE.Redis has a .Keys() method on IServer API which fully encapsulates the semantics of SCAN. If possible, just use this method, and consume the data 100 at a time. It is usually pretty easy to write a...

View Article


Answer by AussieJoe for StackExchange.Redis Scan x amount of keys

I would use the .Take() method, outlined by Microsoft here. Returns a specified number of contiguous elements from the start of a sequence. It would look something like this: //limit to 100 var keysArr...

View Article


StackExchange.Redis Scan x amount of keys

I have a redis db that has thousands of keys and I'm currently running the following line to get all the keys: string[] keysArr = keys.Select(key => (string)key).ToArray(); But because I have a lot...

View Article
Browsing latest articles
Browse All 3 View Live


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