A ruby library for accessing memcached.


Installing memcache-client

Just install the gem:

$ sudo gem install memcache-client

Using memcache-client

With one server:

CACHE = 'localhost:11211'

Or with multiple servers:

CACHE = %w[]

Tuning memcache-client

The method takes a number of options which can be useful at times. Please read the source comments there for an overview. If you are using Ruby 1.8.x and using multiple memcached servers, you should install the RubyInline gem for ultimate performance.

Using memcache-client with Rails

Rails 2.1+ includes memcache-client 1.5.0 out of the box. See ActiveSupport::Cache::MemCacheStore and the Rails.cache method for more details. Rails 2.3+ will use the latest memcache-client gem installed.


memcache-client is maintained by Mike Perham and was originally written by Bob Cottrell, Eric Hodel and the seattle.rb crew.


[email protected]




If my work on memcache-client is something you support, please take a moment to recommend me at WWR. I'm not asking for money, just a electronic “thumbs up”.