Do not validate return code is set is successful

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Victor Dubiniuk 2016-12-12 16:51:27 +03:00 committed by Lukas Reschke
parent b0c1460a1d
commit c5754a5ec5
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ class Memcached extends Cache implements IMemcache {
} else {
$result = self::$cache->set($this->getNamespace() . $key, $value);
}
$this->verifyReturnCode();
if ($result !== true) {
$this->verifyReturnCode();
}
return $result;
}