tdt/cache
最新稳定版本:v1.0
Composer 安装命令:
composer require tdt/cache
包简介
A wrapper around caching systems.
关键字:
README 文档
README
This repository holds a wrapper around a caching system. You can use NoCache if no caching system is installed, or MemCache. This allows the user to provide caching in his code, and switch to other caching systems later on if necessary.
Usage
$c = Cache::getInstance( array("system" => "Memcache", "host" => "localhost", "port" => 11211 ) ); $c->set("key", $objectToCache, $TTL); // TTL is optional $cachedObject = $c->get("key"); // delete the cachedObject $c->delete("key");
统计信息
- 总下载量: 850
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPLv3
- 更新时间: 2013-01-19