Proposal for Redis cache tags using sets #5952
Closed
binaryfire
started this conversation in
Ideas
Replies: 1 comment 2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I suggest implementing cache tags using Redis sets, similar to how it's done in Laravel. It's a more efficient way to retrieve a group of keys than using scan. What do you think about this approach? I can start working on a PR if everyone agrees.
However, to facilitate this, we would need to create a custom
CacheInterface
as the current PSR-16CacheInterface
doesn't provide a method for cache tagging. This would mean adding the$tag
parameter to theset
method and introducing a newdeleteTag
method.Beta Was this translation helpful? Give feedback.
All reactions