booksleeve
in booksleeve how do I iterate through all the keys in given db
I´m using booksleeve (and it is awesome) to access redis from C#. The only thing I lack is api documentation (or perhaps I haven´t found it?). I need to flush redis db to sql server, so I need to iterate through all the keys in redis db. How is this best done? Edit Ok, I've managed to do this by: var conn = MyTable.RedisConnection; var keys = conn.Keys.Find(MyTable.redis_db_index, "*").Result;
I would use publisher/subscriber technique. It seems that Find in Booksleeve is Keys pattern command in Redis. And they do not recommend using Keys pattern in production. See http://redis.io/commands/keys .
Related Links
BookSleeve ConnectionUtils with sentinel password
in booksleeve how do I iterate through all the keys in given db
Saving a collection of objects with BookSleeve
Booksleeve - Setting multiple Hash Values and retrieve them at once
How to use a singleton for storing the RedisConnection with Booksleeve?