2017 © Pedro Peláez
 

library phpcache

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

image

pspychalski/phpcache

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

  • Monday, January 11, 2016
  • by DzikuVx
  • Repository
  • 1 Watchers
  • 1 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

PhpCache

PhpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms: * APC (deprecated) * Memcached * Redis * Filesystem (deprecated) * Session (deprecated) * Variable (temporary, not available between requests), (*1)

Example usage

require_once 'PhpCache.php';
\PhpCache\PhpCache::$sDefaultMechanism = 'Redis';
$cache = \PhpCache\Factory::getInstance()->create();

$key = new \PhpCache\CacheKey('myKey');
$cache->set($key, 'Lorem ipsum');
if ($cache->check($key)) {
    var_dump($cache->get($key));
} else {
    var_dump('Data not found');
}

Methods available for all caching mechanisms:

  • set - sets cache value based on provided key
  • get - get data from cache based on provided key. Returns false when no data for key
  • check - checks if data for provided key is set
  • clear - removed data for key
  • clearAll - flushes cache

The Versions

11/01 2016

dev-master

9999999-dev

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

  Sources   Download

MIT

The Requires

 

The Development Requires

11/01 2016

1.1.2

1.1.2.0

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

  Sources   Download

MIT

The Requires

 

The Development Requires

02/07 2015

1.1.1

1.1.1.0

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

  Sources   Download

MIT

The Requires

 

The Development Requires

30/06 2015

dev-develop

dev-develop

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

  Sources   Download

MIT

The Requires

 

The Development Requires

25/06 2015

1.1.0

1.1.0.0

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

  Sources   Download

MIT

The Requires

 

The Development Requires

21/05 2015

1.0.1

1.0.1.0

phpCache is object PHP >=5 cache wrapper that offers similar way of handling various caching mechanisms

  Sources   Download

MIT

The Requires

  • php >=5.3.0