I am using Memory cache to retreive object. However if I modify property its automatically updated in cache without calling MemoryCache.Set
. Btw we are talking about Asp.Net Core IMemoryCache.
I have issue which is kinda strange. I retreive object from database and set it to cache. It has property Childrens. If I navigate in Blazor to children page and then move back somehow parent's property Childrens is changed. Only code where I am setting "= ..." property is while creating memory object. Then I just using simple Childrens.Where
. Solution to this would be getting object from Memory Cache which is not automatically updated when Blazor do some stuff to my object.