public function __construct($config) { $this->config = $config; $this->key = Config::app('key'); // setup the memcache server extract(Config::cache('memcached')); $this->server = new M(); $this->server->addServer($host, $port); }