Skip to content

Repository files navigation

Cache Utilities

GitterLatest Stable Versioncodecov.ioTotal DownloadsMonthly DownloadsSoftware License

This is a collection of utilities for the PSR-16 and PSR-6 caching standards.

Install

composer require cache/util

Use

usefunctionCache\Util\SimpleCache\remember;
$cache = newSimpleCache(); // 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() {
returnsomeExpensiveOperation();
});

Contribute

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

About

[READ ONLY] Util package for cache

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages