return '' ===
$namespace &&
$this->
getClient()->
flush();
} private function checkResultCode(mixed
$result): mixed
{ $code =
$this->client->
getResultCode();
if (\Memcached::RES_SUCCESS ===
$code || \Memcached::RES_NOTFOUND ===
$code) { return $result;
} throw new CacheException('MemcachedAdapter client error: '.
strtolower($this->client->
getResultMessage()));
} private function getClient(): \Memcached
{ if (isset($this->client
)) { return $this->client;
} $opt =
$this->lazyClient->
getOption(\Memcached::OPT_SERIALIZER
);
if (\Memcached::SERIALIZER_PHP !==
$opt && \Memcached::SERIALIZER_IGBINARY !==
$opt) { throw new CacheException('MemcachedAdapter: "serializer" option must be "php" or "igbinary".'
);
}