2017 © Pedro Peláez
 

library cache

A collection of PHP classes which act as caches

image

emmetog/cache

A collection of PHP classes which act as caches

  • Monday, May 13, 2013
  • by emmetog
  • Repository
  • 2 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

emmetog/cache

A collection of PHP classes which act as caches. This package has an interface and several classes which implement it. At the moment there are classes for the following types of cache:, (*1)

  • Memcached (requires the php5-memcached package to be installed on your system)
  • Registry (uses static variables to cache things for one PHP execution only)
  • NullCache (can be used anywhere any other cache can but doesn't actually cache anything)

This package has no other dependancies, it can easily be used on it's own., (*2)

Installation

This package uses Composer, to use it just add it to your composer.json file., (*3)

For example:, (*4)

"require": {
    "emmetog/cache":    "1.0.*",
}

Then just create the object you want (careful with namespaces) and use it, for example:, (*5)

$registry = Emmetog\Cache\Registry::getInstance();

$registry->set('hello', 'world');

// $cachedValue will contain the string "world".
$cachedValue = $registry->get('hello');

This package follows the semantic versioning guidelines., (*6)

The Versions

13/05 2013

dev-master

9999999-dev

A collection of PHP classes which act as caches

  Sources   Download

GPL-3.0

cache registry memecached

13/05 2013

v1.0.0

1.0.0.0

A collection of PHP classes which act as caches

  Sources   Download

GPL-3.0

cache registry memecached

01/05 2013

v1.0.0-alpha1

1.0.0.0-alpha1

Classes that act as caches

  Sources   Download

GPL-3.0

cache