protected function init() { if (static::$container === null) { switch ($this->type) { case 'memcache': static::$container = Suricate::CacheMemcache(true); break; case 'apc': static::$container = Suricate::CacheApc(true); break; default: throw new \Exception("Unknown cache type " . $this->type); break; } } }