memcache-client
A pure ruby library for accessing memcached.
Source:
github.com/mperham/memcache-client
Installing memcache-client
Just install the gem:
$ sudo gem install memcache-client
Using memcache-client
With one server:
CACHE = MemCache.new 'localhost:11211'
Or with multiple servers:
CACHE = MemCache.new %w[one.example.com:11211 two.example.com:11211]
Tuning memcache-client
The MemCache.new method takes a number of options which can be useful at times. Please read the source comments there for an overview.
Using memcache-client with Rails
Rails 2.1+ includes memcache-client out of the box. See ActiveSupport::Cache::MemCacheStore and the Rails.cache method for more details.
Questions?
memcache-client is maintained by Mike Perham and was originally written by Bob Cottrell, Eric Hodel and the seattle.rb crew.
- WWW