Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Cache] create RedisTagAwareAdapter to reduce roundtrips #28250

Closed
@nicolas-grekas

Description

@nicolas-grekas

Thanks to Lua scripting capabilities of Redis, we should be able to implement the tag invalidation logic in Redis itself:

On data read, Redis would return the item if its tag versions are up to date. If not Redis would prune the item+its tags. The write + invalidation logic should remain basically the same. We could also implement PruneableInterface on this adapter.

I think this would make Redis the most efficient backend for tagged items.
A similar strategy could also work for a PdoTagAwareAdapter btw.

See https://redis.io/commands/eval

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions