Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SlidingExpiration, AbsoluteExpiration and AbsoluteExpirationRelativeToNow in Set Redis and InMemory #420

Open
mehdihadeli opened this issue Nov 17, 2022 · 4 comments
Labels

Comments

@mehdihadeli
Copy link

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

@catcherwong
Copy link
Member

@mehdihadeli Thanks for your interest in this project.

We don't support SlidingExpiration at this time.

All the providers use AbsoluteExpirationRelativeToNow in Set method.

@mehdihadeli
Copy link
Author

mehdihadeli commented Nov 17, 2022

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

@catcherwong
Copy link
Member

Welcome to submit a PR.

@mehdihadeli
Copy link
Author

Sure, I will do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants