truongwp/php-static-cache
Composer 安装命令:
composer require truongwp/php-static-cache
包简介
PHP caching class uses static variable to cache data during runtime
README 文档
README
PHP caching class uses static variable to cache data during runtime
Installation
Use composer to include the library:
composer require truongwp/php-static-cache
Example
$static_cache = new \Truongwp\StaticCache(); if ( $static_cache->has( 'key' ) ) { $value = $static_cache->get( 'key' ); } else { $value = do_something(); $static_cache->set( 'key', $value ); }
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-28