outten.net - random thoughts

Memcache-client for Ruby

A few days ago, there was a posting on the Ruby on Rails blog about a new memcache-client and cached_model. The instructions seemed straight forward so I thought I would give it a try. I added the CachedModel to a Rails application and had it working in no time. The application wasn’t spread across multiple servers so there wasn’t much point to it other than to test it. I decided I wanted to write a standalone ruby script to interact with my memcached server. While trying this, I ran into the following error:

memcache.rb:305:in `socket': uninitialized constant MemCache::Server::Timeout