ngmoco/cache-money — pull request #26 by sshaw (2012-01-16 09:01:20+00:00)
Title: Cash::Lock#acquire_lock Causes NoMethodError

`Cash::Lock#acquire_lock` calls `get_server_for_key` on the cache adapter: https://github.com/ngmoco/cache-money/blob/master/lib/cash/lock.rb#L36. This method is specific to `memcache-client`, when `memcached` is being used a `NoMethodError` is raised.

My pull request contains a fix for this and for the Redis adapter. The test cases for this error were already there, they just need to be modified to check for the right exception.

There is still an issue if memcache-client is being used. In this case the call to `get_server_for_key` can raise an unhandled exception. But, due to the current state of said lib and my uncertainty about this project's direction i.e., will memcache-client still be supported here, will you support Dalli in addition to or instead of it, Redis etc... I left it alone.