soneritics/cache
Composer 安装命令:
composer require soneritics/cache
包简介
Caching mechanism with support for multiple caching types.
README 文档
README
by
- @Soneritics - Jordi Jolink
Introduction
Caching interfaces and implementation of caching methods.
Minimum Requirements
- PHP 5.5+
Features
Currently supports the following caches:
- TextCache
- FileCache
- MemCache
- ArrayCache
- SessionCache
Example
$textCache = (new TextCache('tmp')) ->setCacheExpiration(4) ->set('test', 'test'); echo $textCache->get('test'); // sleep(5); // $textCache->has('test') === false $fileCache = (new FileCache('tmp')) ->setCacheExpiration(3600) ->set('test', ['test1', 'test2']); var_dump($fileCache->get('test')); $fileCache->clear('test');
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-20