This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Brenden (author)
Fri Feb 20 21:34:29 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
History.txt | Thu Feb 19 18:42:04 -0800 2009 | |
| |
LICENSE.txt | Wed Jan 14 19:11:39 -0800 2009 | |
| |
README.rdoc | Wed Jan 14 20:21:22 -0800 2009 | |
| |
Rakefile | Sat Jan 24 07:32:52 -0800 2009 | |
| |
lib/ | Fri Feb 20 21:34:29 -0800 2009 | |
| |
memcache-client.gemspec | Thu Feb 19 18:42:04 -0800 2009 | |
| |
test/ | Fri Feb 20 21:34:29 -0800 2009 |
README.rdoc
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', :namespace => 'my_namespace'
Or with multiple servers:
CACHE = MemCache.new %w[one.example.com:11211 two.example.com:11211],
:namespace => 'my_namespace'
See MemCache.new for details. Please note memcache-client is not thread-safe by default. You should create a separate instance for each thread in your process.
Using memcache-client with Rails
There’s no need to use memcache-client in a Rails application. Rails 2.1+ includes a basic caching library which can be used with memcached. See ActiveSupport::Cache::Store 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 |







