I am using memcached for a rails app at the moment. I need the delete_matched() feature, so I use an extra list with all the stored keys in it which I can match and delete one by one (someone wrote that already).
Problem is that it’s not really working: some keys get not deleted from time to time – it really have no clue why, the code looks valid for me (and regexps are correct).
Is there an fork of memcached with this feature? I can’t imagine why it’s not implemented by default.
I ended up using Redis with the
redis-railsgem for this task.