EasyCaching
EasyCaching copied to clipboard
Global cache expiration period
Description
I want to set all cache items expiration globally in my project, but not pass the expiry in the Set or Get methods
Related code
_inMemoryCaching.Set("SomeKey", "SomeValue");
Instead of
_inMemoryCaching.Set("SomeKey", "SomeValue", TimeSpan.FromMinutes(5));
the same for Get
Expected behavior: Get the expiry from EasyCaching configs
Actual behavior: There is no way to get the global expiration period from congfis
Specifications
- Provider : InMemory (version 0.2.0)
- Serializer : msgpack
- System : Windows 11