This package is abandoned and no longer maintained. The author suggests using the cache/cache package instead.

Library for quick and easy caching. Supports multiple drivers. [DEPRECATED]

v2.0.1 2017-01-12 10:10 UTC

This package is auto-updated.

Last update: 2022-02-01 12:34:40 UTC


README

This package is DEPRECATED use a PSR-6 solution like https://github.com/php-cache/cache

Cache

Library for quick and easy caching. Supports multiple drivers.

Latest Version on Packagist Software License Build Status Coverage Status Quality Score

Installation

composer require treehouselabs/cache:^2.0

Usage

$driver = new RedisDriver($redis);
$serializer = new JsonSerializer();
$cache = new Cache($driver, $serializer);

$cache->set('foo', 'bar', 60);
$cache->get('foo');
$cache->has('foo');
$cache->remove('foo');