コード例 #1
0
ファイル: CacheApc.class.php プロジェクト: kimkucheol/xe-core
    /**
     * Delete variable from the cache
     *
     * @param string $key Used to store the value.
     * @return void
     */
    function delete($key)
    {
        $_key = md5(_XE_PATH_ . $key);
        return apc_delete($_key);
    }
    /**
     * Truncate all existing variables at the cache
     *
     * @return bool Returns true on success or false on failure.
     */
    function truncate()
    {
        return apc_clear_cache('user');
    }
    /**
     * @DEPRECATED
     */
    function _delete($key)
    {
        return $this->delete($key);
    }
}
CacheApc::$isSupport = function_exists('apc_add');
/* End of file CacheApc.class.php */
/* Location: ./classes/cache/CacheApc.class.php */