I want to remove all objects that are stored in Redis via the ServiceStack Redis client. I tried to use the Remove method with "*" as a key but it is not ok. Thanks.
Asked
Active
Viewed 507 times
1 Answers
0
If you want to clear all data on the Redis instance you can use:
redis.FlushAll();
Or if you just want to clear the DB you're on:
redis.FlushDb();

mythz
- 141,670
- 29
- 246
- 390
-
is there a method to flush only the keys within the .WithPrefix("prefix")? – icube Aug 04 '17 at 11:13