CacheTower icon indicating copy to clipboard operation
CacheTower copied to clipboard

Sliding expiries

Open wazzamatazz opened this issue 2 years ago • 0 comments

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 avatar Aug 17 '23 06:08 wazzamatazz