CARVIEW |
Every repository with this icon (

Every repository with this icon (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install mperham-memcache-client
Fork of fiveruns/memcache-client | |
Description: | Ruby library for accessing memcached. edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/mperham/memcache-client.git
Give this clone URL to anyone.
git clone git://github.com/mperham/memcache-client.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:mperham/memcache-client.git
|
name | age | message | |
---|---|---|---|
![]() |
FAQ.rdoc | Tue Jun 16 15:48:54 -0700 2009 | Update benchmarks and faq with comparison to me... [mperham] |
![]() |
History.rdoc | Tue Jun 09 05:08:25 -0700 2009 | Prepare for 1.7.4 release [mperham] |
![]() |
LICENSE.txt | Wed Jan 14 19:11:39 -0800 2009 | Pull socket timeout fixes from 37signals. Remov... [mperham] |
![]() |
README.rdoc | Fri Jun 19 14:04:59 -0700 2009 | Small doc update [mperham] |
![]() |
Rakefile | Tue Mar 31 07:44:14 -0700 2009 | Minor tweaks [mperham] |
![]() |
lib/ | Fri Jun 19 14:14:13 -0700 2009 | Update docs [mperham] |
![]() |
memcache-client.gemspec | Tue Jun 09 05:08:25 -0700 2009 | Prepare for 1.7.4 release [mperham] |
![]() |
performance.txt | Tue Jun 16 15:48:54 -0700 2009 | Update benchmarks and faq with comparison to me... [mperham] |
![]() |
test/ | Sat Jun 06 13:00:06 -0700 2009 | Clean up and prepare for 1.7.3 release [mperham] |
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 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.
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".