Skip to content
Discussion options

You must be logged in to vote

Hi @AHosseinRnj

Hello! First, I just want to thank you for this excellent project.

Happy you're liking FusionCache!

I have a question about the GetOrDefault[Async] method.

In the documentation, it says: “With this method, NOTHING IS SET in the cache.”

My question: If a value is read from the distributed cache, does it also get stored in the memory cache afterward?

While studying the source code, I came to the conclusion that it does store the value in memory after reading, but I wanted to double-check to be sure.

I see what you are saying, maybe I should clarify the wording in the docs.

What I meant to say is that the default value returned is not saved in the cache, but just returned.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AHosseinRnj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants