phpfluent/cache

A conventional project tool for PHP and git.

1.0.3 2018-01-29 18:00 UTC

README

Build Status

A fluent cache library for PHP built on the shoulders of Doctrine\Cache.

Installation

Package is available on Packagist, you can install it using Composer.

composer require phpfluent/cache

Usage

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