2017 © Pedro Peláez
 

library util

PSR-6 and PSR-16 Caching Utilities

image

cache/util

PSR-6 and PSR-16 Caching Utilities

  • Wednesday, June 6, 2018
  • by Nyholm
  • Repository
  • 3 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Cache Utilities

Gitter Latest Stable Version codecov.io Total Downloads Monthly Downloads Software License, (*1)

This is a collection of utilities for the PSR-16 and PSR-6 caching standards., (*2)

Install

composer require cache/util

Use

use function Cache\Util\SimpleCache\remember;

$cache = new SimpleCache(); // some simple cache interface

// if the result exists at the key, it'll return from cache, else it'll execute the callback and store in cache and return.
$res = remember($cache, 'key', 3600, function() {
    return someExpensiveOperation();
});

Contribute

Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker., (*3)

The Versions

06/06 2018

dev-master

9999999-dev http://www.php-cache.com/en/latest/

PSR-6 and PSR-16 Caching Utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

cache util utilities psr6 psr16