FusionCache icon indicating copy to clipboard operation
FusionCache copied to clipboard

[QUESTION] Are there any plans to support SetSize through FusionHybridCache / HybridCacheEntryOptions?

Open bebo-dot-dev opened this issue 7 months ago • 15 comments

Hi @jodydonetti ,

So the goal of asking this question is to understand how MemoryCacheOptions.SizeLimit could be set to enable the control of the L1 memory cache size whilst the same time use .AsHybridCache and be able to pass Size through HybridCacheEntryOptions to the FusionHybridCache so that it may internally convert the passed HybridCacheEntryOptions to FusionCacheEntryOptions and honour the size value passed through.

My read of the situation at present is that this isn't currently possible because HybridCacheEntryOptions has no support for Size and also that this idea might be a tricky proposition because I can understand the desire for FusionCache to remain true to the underlying HybridCache and HybridCacheEntryOptions types and code contracts that exist.

That said there's a part of me that thinks this could be achieved through a FusionHybridCacheEntryOptions type (if palatable) and I decided to ask the question to get your thoughts / ideas on it.

Many thanks, Joe

bebo-dot-dev avatar Apr 07 '25 18:04 bebo-dot-dev