Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't log an error on Memcached::NotFound since it's the normal behav…

…ior when a key can't be found
  • Loading branch information...
commit d931550d2dc29869ff3cbb5d597b05d1acc7a801 1 parent a8224ae
@packagethief packagethief authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/active_support/cache/libmemcached_store.rb
View
2  lib/active_support/cache/libmemcached_store.rb
@@ -34,6 +34,8 @@ def initialize(*addresses)
def read(key, options = nil)
super
@cache.get(key, marshal?(options))
+ rescue Memcached::NotFound
+ nil
rescue Memcached::Error => e
log_error(e)
nil
Please sign in to comment.
Something went wrong with that request. Please try again.