public
Fork of fiveruns/memcache-client
Description: Ruby library for accessing memcached.
Homepage:
Clone URL: git://github.com/mperham/memcache-client.git
Click here to lend your support to: memcache-client and make a donation at www.pledgie.com !
mperham (author)
Sun Apr 12 18:35:40 -0700 2009
commit  f85d34a4fede48fd0f450184505938127476c8a0
tree    e5af60a56a42a9cc2cad02807fc98077e89ad055
parent  e047a05fb640275e145850a2f4162fa130a29c54
name age message
file FAQ.rdoc Loading commit data...
file History.rdoc
file LICENSE.txt Wed Jan 14 19:11:39 -0800 2009 Pull socket timeout fixes from 37signals. Remov... [mperham]
file README.rdoc Sat Mar 28 13:11:36 -0700 2009 Several more logging fixes, update tests to use... [mperham]
file Rakefile Tue Mar 31 07:44:14 -0700 2009 Minor tweaks [mperham]
directory lib/
file memcache-client.gemspec Sun Apr 12 18:35:40 -0700 2009 Rollback socket timeouts. Release 1.7.2. [mperham]
file performance.txt
directory test/
README.rdoc

memcache-client

A 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. 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 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.

Email:mperham@gmail.com
Twitter:mperham
WWW:mikeperham.com

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".