2017 © Pedro Peláez
 

library cache

Caching library with support for multiple cache backends

image

zodyac/cache

Caching library with support for multiple cache backends

  • Friday, September 13, 2013
  • by noginn
  • Repository
  • 30 Watchers
  • 0 Stars
  • 102 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Zodyac Cache

Caching library with a unified interface for multiple backends, (*1)

Latest Stable Version Build Status, (*2)

Usage

use Zodyac\Cache\Cache;
use Zodyac\Cache\Storage\ApcStorage;

$cache = new Cache(new ApcStorage());
$result = $cache->get('key');
if ($result->isMiss()) {
    $value = expensiveOperation(42);
    $cache->set('key', $value);
}

Backends

Memcached

APC

Doctrine cache bridge

Use the your Zodyac\Cache\Cache instance as a Doctrine Cache with Zodyac\Cache\DoctrineCache. This is useful when you want to use Zodyac Cache for metadata, query or result caching in Doctrine ORM., (*3)

use Zodyac\Cache\Cache;
use Zodyac\Cache\DoctrineCache;
use Zodyac\Cache\Storage\ApcStorage;

$cache = new Cache(new ApcStorage());
$doctrineCache = new DoctrineCache($cache);
$value = $doctrineCache->doFetch('key');

Credits

The Versions

13/09 2013

dev-master

9999999-dev http://jadu.github.io

Caching library with support for multiple cache backends

  Sources   Download

NCSA

The Requires

 

The Development Requires

by Tom Graham

cache memcached

13/09 2013

v0.1.2

0.1.2.0 http://jadu.github.io

Caching library with support for multiple cache backends

  Sources   Download

NCSA

The Requires

 

The Development Requires

by Tom Graham

cache memcached

22/08 2013

v0.1.1

0.1.1.0 http://jadu.github.io

Caching library with support for multiple cache backends

  Sources   Download

NCSA

The Requires

 

The Development Requires

by Tom Graham

cache memcached

04/08 2013

v0.1.0

0.1.0.0 http://jadu.github.io

Caching library with support for multiple cache backends

  Sources   Download

NCSA

The Requires

 

The Development Requires

by Tom Graham

cache memcached