Skip to content

[QUESTION] Can you tell if the cache hit comes from Memory or Distributed? #194

Description

@JarrodOsborne

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions