I’m trying out memcachedb and since it uses the same protocol as memcached, I figured I’d use Ruby’s memcached library to access it.

dev-48-gl:~$ irb
irb(main):001:0> require 'memcache'
=> true
irb(main):002:0> CACHE = MemCache.new 'localhost:21201', :namespace => 'my_namespace'
=> <MemCache: 1 servers, 1 buckets, ns: "my_namespace", ro: false>
irb(main):003:0> CACHE[:blah] = "barf"
=> "barf"
irb(main):004:0> puts CACHE[:blah]
=> nil

Works like a charm!