millennium/phpcache

Implemented PHP Cache Drivers (memcache, array or sample files)

v2.0.1 2016-02-21 12:12 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:08:54 UTC


README

Implements Cache Drivers (apc, memcache, xcache and sample files)

SensioLabs Insight Travis CI Scrutinizer CI
SensioLabsInsight Build Status Scrutinizer Code Quality Code Coverage Build Status

Dependency Status Latest Stable Version Total Downloads Latest Unstable Version License

Requirements:

  • "php": ">=5.3.0"

Suggest

  • "php-apc": "*"
  • "php-memcache": "*"

Features:

  • Maybe some refactoring and optimizing
  • Adding more Unit Tests

Installation and configuration:

Install with Composer, run:

composer require millennium/phpcache

Usage examples:

<?php

require './vendor/autoload.php';

use Millennium\Cache\Cache;
use Millennium\Cache\Drivers\MemcacheDriver;

$test = array('1','2','3');

$driverTest1 = new Cache(new MemcacheDriver(array()));
$driverTest1->store("test", $test);
var_dump($driverTest1->fetch("test"));

Contributions

Contributions to PHPCache are welcome via pull requests.

License

PHPCache was created by Zlatko Hristov and released under the MIT License.