承接 undefinedor/yii2-cached-active-record 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-03