dev-master
9999999-dev http://www.php-cache.com/en/latest/PSR-6 and PSR-16 Caching Utilities
MIT
The Requires
- php ^5.6 || ^7.0
- psr/cache ^1.0
The Development Requires
by RJ Garcia
cache util utilities psr6 psr16
PSR-6 and PSR-16 Caching Utilities
This is a collection of utilities for the PSR-16 and PSR-6 caching standards., (*2)
composer require cache/util
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(); });
Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker., (*3)
PSR-6 and PSR-16 Caching Utilities
MIT
cache util utilities psr6 psr16