From 3cbd3823e11eb626e36d764fbf8896f11b8a69f4 Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Tue, 7 Jan 2014 16:38:20 -0500 Subject: [PATCH] Return true on delete if success --- lib/memcached/rails.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/memcached/rails.rb b/lib/memcached/rails.rb index 70521e9..8d42bdf 100644 --- a/lib/memcached/rails.rb +++ b/lib/memcached/rails.rb @@ -165,6 +165,7 @@ class Memcached # Wraps Memcached#delete so that it doesn't raise. def delete(key, options = nil) super(key) + true rescue NotFound false rescue Error => e