зеркало из https://github.com/github/memcached.git
Return true on delete if success
This commit is contained in:
Родитель
e51a1cd1f6
Коммит
3cbd3823e1
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче