memcache-client version 1.5.0 has been released!
Eric Hodel | Tue, 14 Aug 2007 02:50:12 GMT
memcache-client is a client for Danga Interactive’s memcached.
Changes in 1.5.0:
- Add MemCache#flush_all command. Patch #13019 and bug #10503. Patches submitted by Sebastian Delmont and Rick Olson.
- Type-cast data returned by MemCache#stats. Patch #10505 submitted by Sebastian Delmont.
memcache-client version 1.4.0 has been released!
Eric Hodel | Tue, 31 Jul 2007 04:17:10 GMT
memcache-client is a client for Danga Interactive’s memcached.
1.4.0 Changes:
- Fix bug #10371, #set does not check response for server errors. Submitted by Ben VandenBos.
- Fix bug #12450, set TCP_NODELAY socket option. Patch by Chris McGrath.
- Fix bug #10704, missing #add method. Patch by Jamie Macey.
- Fix bug #10371, handle socket EOF in cache_get. Submitted by Ben VandenBos.
memcache-client version 1.3.0 has been released!
Eric Hodel | Wed, 07 Mar 2007 05:29:02 GMT
http://seattlerb.rubyforge.org/memcache-client
memcache-client is a pure-ruby client to Danga’s memcached.
Changes:
1.3.0
- Apply patch #6507, add stats command. Submitted by Tyler Kovacs.
- Apply patch #6509, parallel implementation of #get_multi. Submitted by Tyler Kovacs.
- Validate keys. Disallow spaces in keys or keys that are too long.
- Perform more validation of server responses. MemCache now reports errors if the socket was not in an expected state. (Please file bugs if you find some.)
- Add #incr and #decr.
- Add raw argument to #set and #get to retrieve #incr and #decr values.
- Also put on MemCacheError when using Cache::get with block.
- memcache.rb no longer sets $TESTING to a true value if it was previously defined. Bug #8213 by Matijs van Zuijlen.
Memcache-client benchmarks
Eric Hodel | Mon, 06 Mar 2006 22:15:00 GMT
Stefan Kaes writes about using memcached for Ruby on Rails session storage wherein he finds that memcache-client beats out all comers in his session store benchmarks:
memcache-client-1.0.3 provides much better performance: much faster than either the old implementation, pstore or ActiveRecordStore, but also faster than my optimized SQLSessionStore using MysqlSession.
Fast memcached on OS X
Eric Hodel | Fri, 03 Mar 2006 00:39:00 GMT
For those of you experiencing a painfully slow memcached on OS X, Noah M. Daniels wrote up instructions on making memcached fast for OS X:
Two simple changes:
First, in memcached.c (in the memcached source directory) add (anywhere above line 105, which reads #ifdef TCP_NOPUSH) the line:
#undef TCP_NOPUSH
I just added it on the line above the #ifdef line.
Rebuild memcached (just do a make && sudo make install, don’t need to re-run configure if you’ve already done it)
then, set the environment variable EVENT_NOKQUEUE to 1
in csh and derivatives: setenv EVENT_NOKQUEUE 1
in sh and derivatives (like bash): export EVENT_NOKQUEUE=1
then start memcached, and it should be fast (it certainly made a difference here)

Articles