Description
How can I delete all keys with the correct prefix that was set up in set-up code.
For example:
UseRedis( options => options.DBConfig.KeyPrefix = "dev1"
I want to delete all keys that have the above prefix "dev1" without having to mention the KeyPrefix.
I was very surprised that IEasyCachingProvider.RemoveAllAsync() requires keys? What is the use case to use this? Could we have an overload that doesn't take keys as parameters?
I also don't want to use "Flush" method as I believe that will ignore the prefix and require admin config.
The sole reason we are trying this library, as opposed to IDistributedCache, is so we can have a way to clear all cache for the application.
IEasyCachingProvider
Specifications
- Provider : IEasyCachingProvider
- Serializer : Newtonsoft
- System : Windows 11
Description
How can I delete all keys with the correct prefix that was set up in set-up code.
For example:
UseRedis( options => options.DBConfig.KeyPrefix = "dev1"
I want to delete all keys that have the above prefix "dev1" without having to mention the KeyPrefix.
I was very surprised that
IEasyCachingProvider.RemoveAllAsync()requires keys? What is the use case to use this? Could we have an overload that doesn't take keys as parameters?I also don't want to use "Flush" method as I believe that will ignore the prefix and require admin config.
The sole reason we are trying this library, as opposed to IDistributedCache, is so we can have a way to clear all cache for the application.
IEasyCachingProvider
Specifications