EasyCaching icon indicating copy to clipboard operation
EasyCaching copied to clipboard

Using SlidingExpiration, AbsoluteExpiration and AbsoluteExpirationRelativeToNow in Set Redis and InMemory

Open mehdihadeli opened this issue 3 years ago • 4 comments

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 avatar Nov 17 '22 13:11 mehdihadeli

@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 avatar Nov 17 '22 15:11 catcherwong

@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.

mehdihadeli avatar Nov 17 '22 20:11 mehdihadeli

Welcome to submit a PR.

catcherwong avatar Nov 21 '22 03:11 catcherwong

Sure, I will do it

mehdihadeli avatar Nov 21 '22 08:11 mehdihadeli