public static function get_instance() { if (!isset(self::$instance)) { self::$instance = new ApcCache(); } return self::$instance; }
public static function del($key) { ApcCache::check(); $res = false; apc_fetch($key, $res); return $res ? apc_delete($key) : true; }
/** * * @param string $key * @throws \Puzzlout\Framework\Exceptions\NotImplementedException */ public function Remove($key) { if (!$this->IsEnabled()) { return false; } $result = false; switch ($this->cacheType) { case BaseCache::TYPE_APC: $result = ApcCache::Init($this->app)->Remove($key); break; default: throw new \Puzzlout\Framework\Exceptions\NotImplementedException(); } return $result; }