Can you configure distributed cache as only cache store? #165
-
For certain cache items that are large in size, want to persist them in distributed cache store only. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @vsudhini and thanks for using FusionCache! To skip the memory cache you can use the As with all other entry options in FusionCache, you can set it once for the entire cache in the Let me know if this works for you. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi, I should've explained myself more clearly: the Cache Stampede prevention against the database is still there (so 1.000 requests coming in for the same piece of data would go to the database at most once), but not for the distributed cache itself.
This means that all the requests would go to the distirbuted cache (but, again, not to the DB) since without a local memory cache there would be no local state, so every request will need to read from the distribu…