ccocchi/libmemcached_store — pull request #2 by timhaines (2012-02-28 00:18:36+00:00)
Title: Don't silence unknown exceptions, and add read_multi to use memcached's multiget

If you're using Rails 3, by default Rack::cache will try a read on each request using the url and all params. If this results in a string longer than 250 characters, then the memcached connection dies. While this lib is swallowing exceptions, it makes it pretty hard to track down.

I've asked Rails 3 to stop using Rack::cache (because it's not useful to me anyway), but another solution may be to hash the keys if longer than 250 chars.

Rolled into this pull request is an implementation of read_multi. Rails 3 will otherwise iteration over the keys calling read on them all.