2017 © Pedro Peláez
 

library tinycache

A simple library to cache assets and html page

image

adrorocker/tinycache

A simple library to cache assets and html page

  • Tuesday, February 7, 2017
  • by adrorocker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Tiny Cache

A small library to cache assets and html pages., (*1)

![Build status][Master image] ![Coverage Status][Master covarage image] Latest Stable Version License, (*2)


Installation

composer require adrorocker/tinycache

Usage

require '../vendor/autoload.php';

use TinyCache\Cache;
use TinyCache\Item;
use TinyCache\Adapter\FilesystemAdapter;

$cache = new Cache(new FilesystemAdapter);

$item1 = new Item('key1','Hola uno');
$item2 = new Item('key2','Hola dos');

$cache->save($item1)

// You can 'add' an Item to the cache collection before it is actually saved on the pool
$cache->saveDeferred($item2);

// Then commit to save the items on the pool
$cache->commit();

// Get an Item from the pool
$item = $cache->getItem('key1');

// Get several Items from the pool
$items = $cache->getItems(['key1','key2']);

// Delete on Item from the pool
$cache->deleteItem('key1');

// Delete several Items from the pool
$cache->deleteItems(['key1','key2']);

// Delete all Items from the pool
$cache->clear();

Authors:

Alejandro Morelos., (*3)

The Versions

07/02 2017

dev-master

9999999-dev https://github.com/adrorocker/tinycache

A simple library to cache assets and html page

  Sources   Download

MIT

The Requires

 

The Development Requires

cache php adrorocker psr-6 opensource

07/02 2017

dev-analysis-XZxQnN

dev-analysis-XZxQnN https://github.com/adrorocker/tinycache

A simple library to cache assets and html page

  Sources   Download

MIT

The Requires

 

The Development Requires

cache php adrorocker psr-6 opensource

30/01 2017

0.1.0

0.1.0.0 https://github.com/adrorocker/tinycache

A simple library to cache assets and html page

  Sources   Download

MIT

The Requires

 

The Development Requires

cache php adrorocker psr-6 opensource