2017 © Pedro Peláez
 

library simple-cache

The PSR-16 extension to Apix-Cache.

image

apix/simple-cache

The PSR-16 extension to Apix-Cache.

  • Wednesday, June 14, 2017
  • by frqnck
  • Repository
  • 2 Watchers
  • 4 Stars
  • 75 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 21 % Grown

The README.md

Apix-SimpleCache, the PSR-16 extension to Apix-Cache

Latest Stable Version Build Status Code Quality Code Coverage License Build Status, (*1)

Apix-SimpleCache provides PSR-16 to Apix-Cache permitting easy caching and invalidation..., (*2)

  • Fully unit-tested and compliant with PSR-1, PSR-2, PSR-4 and PSR-16.
  • Continuously integrated with PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3 ~~and HHVM~~.

Pull requests and ★ Stars are always welcome. For bugs and feature request, please create an issue., (*3)


Basic usage

  use Apix\SimpleCache;

  $client = new \Redis();
  #$client = new \PDO('sqlite:...');    // Any supported client object e.g. Memcached, MongoClient, ...
  #$client = new Cache\Files($options); // or one that implements Apix\Cache\Adapter
  #$client = 'apc';                     // or an adapter name (string) e.g. "APC", "Runtime"
  #$client = new MyArrayObject();       // or even a plain array() or \ArrayObject.

  $cache = SimpleCache\Factory::getPool($client);           // without tagging support
  #$cache = SimpleCache\Factory::getTaggablePool($client);  // with tagging

  if ( !$cache->has('wibble_id') ) {
    $data = compute_slow_and_expensive_stuff();
    $cache->set('wibble_id', $data);
  }

  return $cache->get('wibble_id');

Installation

This project adheres to Semantic Versioning and can be installed using composer:, (*4)

$ composer require apix/simple-cache:1.0.*

All notable changes to this project are documented in its CHANGELOG., (*5)

License

This work is licensed under the New BSD license -- see the LICENSE for the full details.
Copyright (c) 2010-2017 Franck Cassedanne, (*6)

The Versions

14/06 2017

dev-master

9999999-dev https://github.com/apix/simple-cache

The PSR-16 extension to Apix-Cache.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Franck Cassedanne

cache caching session taggable psr-6 psrcache psr-cache psr-16 cache-busting psr-simple-cache

03/05 2017

1.0.0

1.0.0.0 https://github.com/apix/simple-cache

The PSR-16 extension to Apix-Cache.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Franck Cassedanne

cache caching session taggable psr-6 psrcache psr-cache psr-16 cache-busting psr-simple-cache