I have a multi-layer FusionCache set up (in-memory & Redis).
My issue is that objects retrieved from the memory store need to be immutable, so I will likely have to clone them upon retrieval.
However I don't want to clone if the hit comes from Redis as that would be pointless. Is there a way to determine if the cache item retrieved came from in-memory or distributed?
I have a multi-layer FusionCache set up (in-memory & Redis).
My issue is that objects retrieved from the memory store need to be immutable, so I will likely have to clone them upon retrieval.
However I don't want to clone if the hit comes from Redis as that would be pointless. Is there a way to determine if the cache item retrieved came from in-memory or distributed?