68 $persistent = $this->
getConfig()[
'persistent'] ??
true;
70 $connection = new \Memcached($persistent ?
'bx_cache' :
'');
71 $connection->setOption(\Memcached::OPT_CONNECT_TIMEOUT, $this->
getConfig()[
'connectionTimeout'] ?? 1000);
72 $connection->setOption(\Memcached::OPT_SERIALIZER, $this->
getConfig()[
'serializer'] ?? \Memcached::SERIALIZER_PHP);
75 if (!empty($this->servers))
77 foreach ($this->servers as $server)
92 if (isset(
$error[
'type']) &&
$error[
'type'] === E_WARNING)
97 $exceptionHandler->writeToLog($exception);