I'm looking for a PHP class which would implement delete($prefix) through the means of key versioning for memcached (or other cache).
If I have a key structure like this:
table/5/23 => {data}
table/5/24 => {data}
table/6/5 => {data}
When I want to invalidate part of the cache, such as clear everything for table/ or table/5 the only option seems to be is to use key versioning as described in this answer.
Is there an existing PHP class, library or snippet which implements such functionality transparently?
(note: I've looked into MongoDB but I can't use it in my project)