Skip to content

Prefetch to cache (memory/disk) and evict from cache (memory/disk) #5646

@farfromrefug

Description

@farfromrefug

Hi,
I am looking for a way to :

  • prefetch to cache selectively (memory/disk) based on uri and transforms/options
  • evict single uri (all with transform/options from that single uri) selectively from memory/cache

I have been trying to do that and it is really tough. The main hard point is storing the correct "key" to pass to the DiskCache for removal, and storing the EngineKey for the memory cache.
For now i spent hours trying to do that and have not yet found a good way to do that (never get the correct key when trying to evict).

has anyone done that? Does someone have clues on how to do that cleanly and effectively?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions