README in memcached-0.10 vs README in memcached-0.11
- old
+ new
@@ -20,18 +20,18 @@
The <b>memcached</b> library wraps the pure-C libmemcached client via SWIG.
== Installation
-You need Ruby 1.8.6, and {libmemcached 0.20}[http://tangent.org/552/libmemcached.html]. Other versions are not supported. You also need {memcached itself}[http://www.danga.com/memcached/] if you want to test against a local server.
+You need Ruby 1.8.6, and {libmemcached 0.21}[http://tangent.org/552/libmemcached.html]. Other versions are not supported. You also need {memcached itself}[http://www.danga.com/memcached/] if you want to test against a local server.
-For Linux, download and extract the {libmemcached tarball}[http://download.tangent.org/libmemcached-0.20.tar.gz]. Then run:
+For Linux, download and extract the {libmemcached tarball}[http://download.tangent.org/libmemcached-0.21.tar.gz]. Then run:
./configure
make && sudo make install
For OS X, you may be able to install it from MacPorts:
- sudo port install libmemcached @0.20
+ sudo port install libmemcached @0.21
Now install the gem:
sudo gem install memcached --no-rdoc --no-ri
Note that on OS X 10.5 you may need to set the architecture explicitly:
@@ -43,10 +43,10 @@
$ memcached -p 11211 &
Now, in Ruby, require the library and instantiate a Memcached object at a global level:
require 'memcached'
- $cache = Memcached.new("127.0.0.1:11211")
+ $cache = Memcached.new("localhost:11211")
Now you can set things and get things:
value = 'hello'
$cache.set 'test', value