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

Fix race conditions on SlidingExpiration + AbsoluteExpiration #80

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Mar 26, 2024

When using Sliding Expiration with Absolute Expiration, there could be scenarios where the cache item is readable but it expires right then, so when attempting to "touch" it (ReplaceAsync), we are calculating the remaining TTL time as 0. 0 is an invalid value for TTL.

Fixes #79

@ealsur ealsur merged commit 7c53dcc into master Mar 26, 2024
6 checks passed
@ealsur ealsur deleted the users/ealsur/slidingabsfix branch March 26, 2024 13:53
@paul-datatech911
Copy link

How quickly will this be pushed to Nuget?

@ealsur
Copy link
Member Author

ealsur commented Mar 26, 2024

I updated the issue, it was released in 1.6.1

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

Successfully merging this pull request may close these issues.

Invalid TTL submitted in Request
2 participants