bcg / memcache-client forked from mperham/memcache-client
- Source
- Commits
- Network (13)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Branch:
master
Brenden (author)
Fri Feb 20 21:34:29 -0800 2009
commit 4f3e17f5081e3dc72a49d4d11c1f9c2baadb74b5
tree db1af918d5aeb7d796c6795b4e813b80adde042a
parent 24a9ab495ad9d572b50c27758278dd7b0126eede
tree db1af918d5aeb7d796c6795b4e813b80adde042a
parent 24a9ab495ad9d572b50c27758278dd7b0126eede
| name | age | message | |
|---|---|---|---|
| |
History.txt | ||
| |
LICENSE.txt | Wed Jan 14 19:11:39 -0800 2009 | |
| |
README.rdoc | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
memcache-client.gemspec | ||
| |
test/ |
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 |

