how to delete memcached data with "filter" keys ?

Posted by panchicore on Stack Overflow See other posts from Stack Overflow or by panchicore
Published on 2010-05-27T13:25:40Z Indexed on 2010/05/27 16:31 UTC
Read the original article Hit count: 254

Filed under:
|

Hi, I just want to delete cached data, but I have many keys, for example:

user_54_books
user_54_movies
user_54_comments
user_54_foobar

I can write $cache->delete('user_54_books'); but I have to do it with all "user_ID_objects", can I say to memcache, something like delete->('user_54_*'); ? how? thanks :)

© Stack Overflow or respective owner

Related posts about php

Related posts about memcached