mrjulio/rapture-cache

Rapture PHP cache component

v1.0.1 2017-11-18 19:09 UTC

This package is not auto-updated.

Last update: 2024-11-02 16:09:09 UTC


README

PhpVersion License

Basic cache component for PHP.

Requirements

  • PHP v5.4
  • php-apcu, php-date, php-memcached, php-pcre

Install

composer require mrjulio/rapture-cache

Quick start

$cache = new Apcu(['namespace' =>  'app']);
$cache->set('user', 'JohnDoe', CacheInterface::ONE_HOUR);
$cache->get('user');

About

Author

Iulian N. rapture@iuliann.ro

Testing

cd ./test && phpunit

License

Rapture PHP Cache is licensed under the MIT License - see the LICENSE file for details.