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

Sliding expiries #259

Open
wazzamatazz opened this issue Aug 17, 2023 · 0 comments
Open

Sliding expiries #259

wazzamatazz opened this issue Aug 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@wazzamatazz
Copy link
Contributor

What problem does the feature solve?

Consider adding the option of a sliding expiry to cache items, as supported by both IMemoryCache and IDistributedCache in Microsoft.Extensions.*. This would allow cache items to be evicted before their TTL expired if they were not being actively used.

How would you use/interact with the feature? (if applicable)

The CacheSettings type could be extended to also define a SlidingExpiry property that could be used by a cache layer if supported by the underlying provider.

@wazzamatazz wazzamatazz added the enhancement New feature or request label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant