2017 © Pedro Peláez
 

library cache

Caching mechanism with support for multiple caching types.

image

soneritics/cache

Caching mechanism with support for multiple caching types.

  • Monday, March 23, 2015
  • by soneritics
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Cache

Build Status Coverage Status License, (*1)

by * @Soneritics - Jordi Jolink, (*2)

Introduction

Caching interfaces and implementation of caching methods., (*3)

Minimum Requirements

  • PHP 5.5+

Features

Currently supports the following caches: - TextCache - FileCache - MemCache - ArrayCache - SessionCache, (*4)

Example

```php $textCache = (new TextCache('tmp')) ->setCacheExpiration(4) ->set('test', 'test');, (*5)

echo $textCache->get('test'); // sleep(5); // $textCache->has('test') === false, (*6)

$fileCache = (new FileCache('tmp')) ->setCacheExpiration(3600) ->set('test', ['test1', 'test2']);, (*7)

var_dump($fileCache->get('test')); $fileCache->clear('test');, (*8)

The Versions

23/03 2015

dev-master

9999999-dev https://github.com/Soneritics/Cache

Caching mechanism with support for multiple caching types.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires