cornernote/yii2-cache-behavior
最新稳定版本:1.0.3
Composer 安装命令:
composer require cornernote/yii2-cache-behavior
包简介
Cache behavior for Yii2.
README 文档
README
Cache behavior for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require cornernote/yii2-cache-behavior "*"
or add
"cornernote/yii2-cache-behavior": "*"
to the require section of your composer.json file.
Usage
In your ActiveRecord class:
public function behaviors() { return [ \cornernote\cachebehavior\CacheBehavior::className(), // or [ 'class' => \cornernote\cachebehavior\CacheBehavior::className(), 'cache' => 'cache', 'backupCache' => 'fileCache', ], ]; }
统计信息
- 总下载量: 10.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-09-21