protected function doHave(string
$id): bool
{ return false !==
$this->
getClient()->
get(self::
encodeKey($id)) ||
$this->
checkResultCode(\Memcached::RES_SUCCESS ===
$this->client->
getResultCode());
} protected function doDelete(array
$ids): bool
{ $ok = true;
$encodedIds =
array_map([__CLASS__, 'encodeKey'
],
$ids);
foreach ($this->
checkResultCode($this->
getClient()->
deleteMulti($encodedIds)) as $result) { if (\Memcached::RES_SUCCESS !==
$result && \Memcached::RES_NOTFOUND !==
$result) { $ok = false;
} } return $ok;
} protected function doClear(string
$namespace): bool
{ return '' ===
$namespace &&
$this->
getClient()->
flush();
}