arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 127 forks source link

Added Memcached::ServerEnd to the list of exceptions to retry #79

Closed ChristopherThorpe closed 12 years ago

ChristopherThorpe commented 12 years ago

Some old versions of memcache raise ServerEnd exceptions when a SET follows a GET that raises a Memcached::NotFound error. Adding this line solves that problem.

For example, see https://github.com/evan/memcached/pull/50

I understand that this should be fixed already in the current release, but in systems where earlier versions of memcached needs to be used for compatibility reasons, this patch is an easy fix to solve the ServerEnd exception problem.