2017 © Pedro PelĂĄez
 

library cache

Simple and cool cache lib

image

ferrari/cache

Simple and cool cache lib

  • Saturday, August 9, 2014
  • by caferrari
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

caferrari\Cache

Build Status Coverage Status Total Downloads License Latest Stable Version Latest Unstable Version, (*1)

Installation

Package is available on Packagist, you can install it using Composer., (*2)

composer require ferrari/cache

Usage


$driver = new \Doctrine\Common\Cache\ArrayCache; $cache = new \Ferrari\Cache($driver); $cache->save('hello', 'world'); echo $cache->fetch('hello'); // 'world' echo $cache['hello']; // 'world' $cache->delete('hello'); // true $cache->get('foo', function() { return 'bar'; }); // 'bar' echo $cache['foo']; // 'bar' $cache['foo'] = 'walla!'; $cache->get('foo', function () { 'tchubiru' }); // 'walla!' unset($cache['foo']); echo $cache->fetch('foo'); // false

The Versions

09/08 2014

dev-master

9999999-dev

Simple and cool cache lib

  Sources   Download

MIT

The Requires

 

The Development Requires