Answer the question
In order to leave comments, you need to log in
Class/lib for with tag functionality for MemcacheD in PHP
Actually, advise the subject, I was going to write it myself, but there are certainly worthy implementations.
Answer the question
In order to leave comments, you need to log in
github.com/jamm/Memory - here you can add tags and delete by tags.
github.com/valmat/Cacher - there are tags, slots, the ability to change the backend on the fly. A set of backends optimized for different tasks. The architecture is optimized for maximum performance.
I implemented this functionality myself.
The bottom line is that cache keys are lines that have a slash as a separator, that is, they look like paths in the file system (originally there was a file cache engine), so it’s convenient to delete directories, for example, clear the cache of all users.
You can see how it works here: Memcached.php#L73
It's easy to separate the class and use it in another project. There will be questions - contact.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question