OutputCaching extension cache stampede #493
-
From the OutputCaching extension code seems it would not use the If we want to avoid the cache stampede, do we need to implement a customized output caching middleware? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @WeihanLi
Correct, but 2 important things here:
The aspnet team designed the interface that way, so there's nothing I can do to use the FusionCache version of the stampede protection. NOTE: a different design that may have been more powerful would have been to also have a Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi @WeihanLi
Correct, but 2 important things here:
IOutputCacheStore
interface, and that interface only has 3 methods to implement (see here):GetAsync
,SetAsync
andEvictByTagAsync
The aspnet team designed the interface that way, so there's nothing I can do to use the FusionCache version of the stampede protection.
I understand why they did that, I think the rationale was to have the…