cache/util
Composer 安装命令:
composer require cache/util
包简介
PSR-6 and PSR-16 Caching Utilities
README 文档
README
This is a collection of utilities for the PSR-16 and PSR-6 caching standards.
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.
统计信息
- 总下载量: 9.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-11