- Author: Jeremy Israelsen
- Based On: MemCache Store with delete_matched (Ladislav Martincik)
Adds the delete_matched functionality to MemCache storage in Rails. Also allows read access to the cached list of keys.
- Delete any keys that match ‘argle’:
Rails.cache.delete_matched(/argle/)
- Retrieve a list of all stored keys:
Rails.cache.keys
- Install plugin:
script/plugin install git://github.com/jisraelsen/enhanced_memcache_store.git
- Add config.cache_store inside initializer in environment.rb:
config.cache_store = :enhanced_mem_cache_store
- Memcache
- memcache-client gem (included in Rails)
- rspec (for running specs)