lucid/cache

Caching library

v0.0.1 2015-12-22 10:09 UTC

This package is not auto-updated.

Last update: 2024-04-23 16:56:02 UTC


README

Author Source Code Software License

Build Status Code Coverage HHVM

Requirements

php >= 5.6

Installation

$ composer require lucid/cache

Using the storage

<?php

use Lucid\Cache\Storage;
use Lucid\Cache\Client\Filesystem;

$cache = new Storate(new Filesystem('app/caches'));

$cache->set('id', 'value');
$cache->get('id'); // 'value'

Included clients

  • APCu
  • Filesystem
  • InMemory
  • Redis
  • Memcached
  • Memcache (php < 7.0)
  • XCache