vpg/titon.cache
最新稳定版本:v1.3.2
Composer 安装命令:
composer require vpg/titon.cache
包简介
The Titon cache package provides a data caching layer that supports multiple storage engines.
README 文档
README
Provides a data caching layer that supports popular storage engines like Memcache, APC, Redis, Wincache, Xcache,
and the local file system. A Cache instance can be used to manage and interact with Storage engines.
$cache = new Titon\Cache\Cache(); $cache->addStorage('memcache', new Titon\Cache\Storage\MemcacheStorage()); $cache->addStorage('fs', new Titon\Cache\Storage\FileSystemStorage()); $cache->set('foo', $data, '+1 hour', 'memcache'); $data = $cache->get('bar', 'fs');
Storage engines can also be used externally and are primarily injected into other services for caching.
$apc = new Titon\Cache\Storage\ApcStorage(); $apc->remove('foo');
Features
Cache- Storage management layerStorage- Vendor specific caching mechanism
Dependencies
CommonIo(optional, for FileSystemStorage)Db(optional, for DatabaseStorage)
Requirements
- PHP 5.4.0
- Igbinary (optional)
- Apc (for ApcStorage)
- Memcached (for MemcacheStorage)
- Redis (for RedisStorage)
- Wincache (for WincacheStorage)
- Xcache (for XcacheStorage)
统计信息
- 总下载量: 12.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-01-01