private function getClient() { if ($this->client === null) { $this->client = new \Memcached(); $this->client->addServer('localhost', 11211); } return $this->client; }