ActiveSupport Cache Store for Evan Weaver's (fauna) fast memcached gem
Ruby
Pull request Compare This branch is 3 commits ahead of methodmissing:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/active_support/cache
.gitignore
MIT-LICENSE
README.md
Rakefile
memcached_store.gemspec
memcached_store.rb

README.md

ActiveSupport Memcached Cache Store

Drop-in replacement for ActiveSupport::Cache::MemCacheStore powered by Evan Weaver's Memcached

Installation

Using Bundler

gem 'memcached_store'

The old-skool way

gem install memcached_store

Usage

In config/application.rb, add this:

For a single memcached server

config.cache_store = :memcached_store, '127.0.0.1:11211', { :namespace => "production" }

For multiple memcached servers, you can pass an array:

config.cache_store = :memcached_store, ['10.0.0.1:11211', '10.0.0.2:11211']

See http://github.com/fauna/memcached for configuration options.

TODO

  • Write tests
  • Implement multi_get

Copyright (c) 2008-2011 Lourens Naudé, Pivotal Labs, Friendster Inc.. Released under the MIT license