EasyCaching
EasyCaching copied to clipboard
Using SlidingExpiration, AbsoluteExpiration and AbsoluteExpirationRelativeToNow in Set Redis and InMemory
Hi,
How can I use SlidingExpiration, AbsoluteExpiration, AbsoluteExpirationRelativeToNow in Set method of redis and in-memory cache?
There is this option in their bultin providers
@mehdihadeli Thanks for your interest in this project.
We don't support SlidingExpiration at this time.
All the providers use AbsoluteExpirationRelativeToNow in Set method.
@catcherwong Can I add them as new overloads for Set method? I know both redis and in-memory cache have this feature in their native libraries.
Welcome to submit a PR.
Sure, I will do it