cornernote/yii2-cache-behavior Cache behavior for Yii2.

cache

Yii2 Cache Behavior

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

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',
        ],
    ];
}

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.3 is the latest of 4 releases



BSD-3-Clause license
Stats
2 github stars & 1 github forks
1 downloads in the last day
38 downloads in the last 30 days
10124 total downloads