↧
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 ArticleAnswer 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 ArticleStackExchange.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