xes/pcache
最新稳定版本:1.2
Composer 安装命令:
composer require xes/pcache
包简介
Wrapper for Predis to add GetOrSet
README 文档
README
Installation
composer require xes/pcache
Usage
require 'vendor/autoload.php'; $predis = new Predis\Client(); $cache = new xes\Pcache($predis); $keyname = 'someKey'; $TTL = 60; echo $cache->get($keyname, $TTL, function() { // Some slow function such as a database call sleep(1); return 'hello world'; });
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-06-13