1

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; 
ren
  • 3,843
  • 9
  • 50
  • 95

1 Answers1

1

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 .

Alex
  • 106
  • 4