Skip to content
Discussion options

You must be logged in to vote

Set ctx.Options.SkipMemoryCacheWrite = true and ctx.Options.SkipDistributedCacheWrite = true in your else branch. This skips caching at both L1 and L2 levels without writing anything. Better than Duration = TimeSpan.Zero which still writes (then expires). See /src/ZiggyCreatures.FusionCache/FusionCacheEntryOptions.cs:409-422.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by EnricoMassone
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@EnricoMassone
Comment options

@jodydonetti
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants