Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

jkassemi/memcache-store-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memcache Storage Extensions

*NO LONGER ACTIVELY MAINTAINED* - this project should be considered Archived. If you are interested in maintaining an official fork, please contact me directly.

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

Installation

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

gem 'memcache-client'
gem 'memcache-store-extensions', :git => "git://github.com/jkassemi/memcache-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 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.

About

Memcache delete_matched extension for Rails 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages