fix(core): don't log error when deleting an invalid key in memcached

master
Francis Lachapelle 2021-09-24 13:11:42 -04:00
parent 434531cc96
commit 0716656cd4
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ static memcached_st *handle = NULL;
keyData = [key dataUsingEncoding: NSUTF8StringEncoding];
rc = memcached_delete (handle, [keyData bytes], [keyData length],
0);
if (rc != MEMCACHED_SUCCESS)
if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_NOTFOUND)
[self errorWithFormat: (@"failure deleting cached value for key"
@" '%@'"),
key];