public function __construct($host = 'localhost', $port = 11211) { $this->memcached = new \Memcached(); $this->memcached->addServer($host, $port); $this->memcached->setOption(\Memcached::OPT_COMPRESSION, true); }