How do I handle Memcached::ServerIsMarkedDead error with Rails?

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2010-05-31T06:58:25Z Indexed on 2010/05/31 9:52 UTC
Read the original article Hit count: 394

Filed under:
|

Hi,

In my Rails app, I changed my model's find method to search into the cache before looking into the database, but I sometime get this error:

Memcached::ServerIsMarkedDead

While waiting for Memcached server to be up again, how should I handle this error and force Rails to search into the database?

Thank you,

Kevin

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about memcached