/** * Удаляет значение из кеша по ключу(имени) * * @param string $sName Имя ключа * @return bool */ public function Delete($sName) { if (!$this->bUseCache) { return false; } /** * Т.к. название кеша может быть любым то предварительно хешируем имя кеша */ $sName = md5(Config::Get('sys.cache.prefix') . $sName); return $this->oBackendCache->remove($sName); }
/** * PUBLIC METHOD FOR UNIT TESTING ONLY ! * * Force a cache record to expire * * @param string $id cache id */ public function ___expire($id) { $this->_fastBackend->remove($id); $this->_slowBackend->___expire($id); }
/** * Remove a cache record * * @param string $cacheId Cache id * @return bool true if no problem */ public function remove($cacheId) { return $this->_backend->remove($cacheId); }