traineratwot/cache
最新稳定版本:3.0.2
Composer 安装命令:
composer require traineratwot/cache
包简介
simple cache system
README 文档
README
define const WT_CACHE_PATH for set cache folder. without WT_CACHE_PATH save to vendor directory
install
composer require traineratwot/cache
Example:
$key = ['key']; $value = ['value']; \Traineratwot\Cache\Cache::setCache($key,$value,600,'category/subcategory') \Traineratwot\Cache\Cache::getCache($key,$value,600,'category/subcategory') \Traineratwot\Cache\Cache::call($key,function($v) use ($key){ if(count($key) === 1){ return $v } return 'noValue' },600,'category/subcategory',$value) \Traineratwot\Cache\Cache::autoRemove() \Traineratwot\Cache\Cache::removeAll()
统计信息
- 总下载量: 3.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-26