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

This commit is contained in:
Francis Lachapelle
2021-09-24 13:11:42 -04:00
parent 434531cc96
commit 0716656cd4

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];