8000 GitHub - PHPFluent/Cache: A fluent cache library for PHP.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PHPFluent/Cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPFluent\Cache

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
0