private function __construct()
{
if (!self::hasMemcachedExt()) {
$this->disable();
return;
}
$this->memcached = new \Memcached();
if (!$this->memcached) {
$this->disable();
return;
}
if (\Memcached::HAVE_IGBINARY) {
$this->memcached->setOption(\Memcached::OPT_SERIALIZER, \Memcached::SERIALIZER_IGBINARY);
}
$this->memcached->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);
$this->lifetime = 3600;
}