ngmoco/cache-money — pull request #28 by eliasbaixas (2012-05-05 09:46:36+00:00)
Title: Solved a bug with memcache_client.rb adapter

a default value for ttl parameter was not being correctly provided in method memcache_client#add

def add(key, value, ttl=nil, raw=false)
@repository.add(key, value || @default_ttl, ttl, raw)

recall that instead of doing || @default_ttl next to ttl, its done in value.

This caused an exception in memcache-client because not providing the TTL is a memcached network protocol error and memcaded returns ERROR.

thanks for this great work !!

Elias