public static function setup($domain, $prefix, $host, $port, $ttl) { self::$domain = $domain; self::$prefix = $prefix; self::$console = Console::create('session'); self::$ttl = $ttl; self::$mem = new Memcache(); self::$mem->pconnect($host, $port); self::$console->log('Connecting:', $host . ':' . $port, '[ttl:' . $ttl . 's]'); }