I want to clear all X instance from Redis Db for testing. But I could not find redisClient.As().CLEAR() method? How can I clear all X instance?
I can add X Instances using
var client=new PooledRedisClientManager(ConfigurationManager.AppSettings["RedisServer"]).GetClient();
X x=new X();
client.As<X>().Store(x);
all x instances are added to Db as urn:X:x.id pattern.
The IRedisTypedClient implements the generic IBasicPersistenceProvider<T> interface which has a
DeleteAll()method. So what you’re after is simply:For more fine-grained deletion options you also have: