Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Memcache delete_matched extension for Rails 3

branch: master

Memcache Storage Extensions

The memcache-store-extensions plugin for Rails 3 adds support for match-based deletes while using the memcached storage engine.


In your Gemfile, make sure you have memcache-client and this gem:

gem 'memcache-client'
gem 'memcache-store-extensions', :git => "git://"

In your config/environments/X.rb, where X is the name of the environment where you'd like to enable caching, make sure you are using the memcached storage engine:

config.cache_store = :mem_cache_store

You now use standard rails caching mechanisms. To expire a fragment:

expire_fragment /.*search.*/

Where the regular expression matches the fragment cache path.

Something went wrong with that request. Please try again.