undefinedor/yii2-cached-active-record
最新稳定版本:0.0.3
Composer 安装命令:
composer require undefinedor/yii2-cached-active-record
包简介
The cached activeRecord for the Yii2 framework
README 文档
README
Installation
The preferred way to install this extension is through Composer .
composer require undefinedor/yii2-cached-active-record
Configuration
In order to use CachedActiveRecord, a valid cache component must be enabled. For Example:
'components' => [ 'cache' => [ 'class' => 'yii\caching\FileCache', ], ],
Usage
It's so easy to use ,you just need to use [[undefinedor\yii2\CachedActiveRecord]] For example,
<?php namespace common\models; use undefinedor\yii2\CachedActiveRecord; use yii\db\ActiveRecord; class BaseActiveRecord extends ActiveRecord { use CachedActiveRecord; //todo }
统计信息
- 总下载量: 2.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-03