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

Is it possible to configure or use RedisConnection to support sliding expiration on cached items? #513

Open
mfaulcon opened this issue Jan 21, 2025 · 1 comment

Comments

@mfaulcon
Copy link

For my use case, I need to use Redis.OM in a scenario where a sliding expiration window would be extremely helpful. Knowing that Redis doesn't support sliding expiration by default is there a way within Redis.OM (or an extension) to add this behavior?

@slorello89
Copy link
Member

@mfaulcon - you'd probably just call Update for the item in question, passing in a timespan, or just explicitly set a TTL / expiration time of the document in Redis.

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

No branches or pull requests

2 participants