Cachearium\Backend\CacheMemcached::__construct PHP 메소드

__construct() 개인적인 메소드

Constructor.
private __construct ( )
    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;
    }