Add the EntryOption => MemoryCacheDuration #385
emeesterinterpulse
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment we work with sliding Expirations on System.Runtime.MemoryCache. (Basicly to To keep memory Low). We looking into a migration to FusionCache (no that tagging is supported). We implemented ImemoryCache on System.Runtime.MemoryCache. So we can easly map Duration to SlidingDuration.
But the problem is that we want the cache LogicalDuration 24 hours (or unlimited, we invalidate cache pure on Tags. ) But we want to keep the sliding expire time low, lets say 20 minutes.
So an extra option MemoryCacheDuration like DistributedCacheDuration could help in our situation.
I also Followed the SlidingExpiration discussion. Maybe our case is one to consider for adding a sliding expiration to fusionCache. (Memory cache only, if it's important data we store it also in de L2 cache)
Beta Was this translation helpful? Give feedback.
All reactions