I am running Ruby on Rails and am using the Dalli gem to access memcached.
Question: how do I delete a range of keys (not multiple, but a range) for something like: delete all memcached entries with a key that begins with "USERINFO", in other words, how can I use wildcards to delete a range of keys?
You should have a look at Rails.cache.delete_matched : http://apidock.com/rails/ActiveSupport/Cache/Store/delete_matched
Does exactly what you want, theorically :
Rails.cache.delete_matched /^USERINFO/