phpfluent/cache

PHP 和 git 的传统项目工具。

1.0.3 2018-01-29 18:00 UTC

This package is auto-updated.

Last update: 2024-08-24 04:08:00 UTC


README

Build Status

一个基于 Doctrine\Cache 构建的 PHP 高效缓存库。

安装

该软件包可在 Packagist 上找到,您可以使用 Composer 安装它。

composer require phpfluent/cache

使用方法

use PHPFluent\Cache\Cache;

/**
 * @var Doctrine\Common\Cache\Cache $doctrine
 */
$doctrine;

$cache        = new Cache($doctrine);
$cache['foo'] = 'bar'; //Caching the information

echo isset($cache['foo']);
echo $cache['foo'];

unset($cache['foo']);//Deleting the cache