Skip to content

cornernote/yii2-cache-behavior

Repository files navigation

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

About

Cache behavior for Yii2.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages