Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

dalli-store-extensions is based on jkassemi's memcache-store-extensions gem @ https://github.com/jkassemi/memcache-store-extensions

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 dalli-store-extensions.gemspec
Octocat-spinner-32 init.rb
README.rdoc

Dalli Storage Extensions

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

Installation

In your Gemfile, make sure you have dalli and this gem:

gem 'dalli'
gem 'dalli-store-extensions', :git => "git://github.com/defconomicron/dalli-store-extensions.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 dalli storage engine:

config.cache_store = :dalli_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.