2017 © Pedro Peláez
 

library cache

A small and simple PHP cache system

image

gustav/cache

A small and simple PHP cache system

  • Monday, October 2, 2017
  • by ckoecher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Cache

A small and simple PHP cache system, which implements PSR-6 interfaces., (*1)

Build Status, (*2)

Implementations

  • Filesystem: Each cache item pool is a simple file. Cache items are saved with help of PHP's default serialization method.
  • Debug: Cache item pools will not be persisted. This is just for testing purposes. Don't use this implementation in production environments.

Usage

//configure the system
$config = new \Gustav\Cache\Configuration();
$config->setDirectory("path/to/my/cache/files/");

//load cache manager
$manager = \Gustav\Cache\ACacheManager::getInstance($config);

//fetch the item pool
$pool = $manager->getItemPool("myFileName", $myCreatorFunction);

Configuration

You can set the following configurations in \Gustav\Orm\Configuration: - setImplementation(string): Sets the implementation of the cache manager to use here. Default is \Gustav\Cache\Filesystem\CacheManager (i.e. the Filesystem cache). - setDirectory(string): Sets the directory on filesystem, where we save the cache pool files. There's no default value. - setDefaultExpiration(integer): Sets the default time to live of cache items, if you don't set any explicitly in \Gustav\Cache\CacheItem. Consider that 0 and lower means, that the items will not expire. Default is 0. - getLogConiguration(): \Gustav\Utils\Log\Configuration / setLogConfiguration(\Gustav\Utils\Log\Configuration): Configure the error log to use in this cache implementation. By default this uses the default configuration from Utils. See Gustav Utils for further information., (*3)

The Versions

02/10 2017

dev-master

9999999-dev http://gustav.fieselschweif.de

A small and simple PHP cache system

  Sources   Download

GPLv3

The Requires

 

The Development Requires

by Chris Köcher

cache psr-6

10/04 2016

v0.5.1

0.5.1.0 http://gustav.fieselschweif.de

A small and simple PHP cache system

  Sources   Download

GPLv3

The Requires

 

The Development Requires

by Chris Köcher

cache psr-6

09/04 2016

v0.5

0.5.0.0 http://gustav.fieselschweif.de

A small and simple PHP cache system

  Sources   Download

GPLv3

The Requires

 

The Development Requires

by Chris Köcher

cache psr-6

03/03 2016

v0.4

0.4.0.0 http://gustav.fieselschweif.de

A small and simple PHP cache system

  Sources   Download

GPLv3

The Requires

 

by Chris Köcher

cache

11/02 2016

v0.3

0.3.0.0 http://gustav.fieselschweif.de

A small and simple PHP cache system

  Sources   Download

GPLv3

The Requires

 

by Chris Köcher

cache

13/10 2015

v0.2

0.2.0.0 http://gustav.fieselschweif.de

A small and simple PHP cache system

  Sources   Download

GPLv3

The Requires

 

by Chris Köcher

cache

22/11 2014

v0.1

0.1.0.0 http://gustav.fieselschweif.de

A small and simple PHP cache system

  Sources   Download

GPLv3

The Requires

 

by Chris Köcher

cache