Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Cache] create RedisTagAwareAdapter to reduce roundtrips #28250

Copy link
Copy link
Closed
@nicolas-grekas

Description

@nicolas-grekas
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.