PHPackages                             undefinedor/yii2-cached-active-record - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. undefinedor/yii2-cached-active-record

ActiveYii2-extension[Caching](/categories/caching)

undefinedor/yii2-cached-active-record
=====================================

The cached activeRecord for the Yii2 framework

0.0.3(9y ago)102.6k↓25%2MITPHP

Since Jun 3Pushed 8y ago3 watchersCompare

[ Source](https://github.com/undefinedor/yii2-CachedActiveRecord)[ Packagist](https://packagist.org/packages/undefinedor/yii2-cached-active-record)[ RSS](/packages/undefinedor-yii2-cached-active-record/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

CachedActiveRecord For Yii2
===========================

[](#cachedactiverecord-for-yii2)

### Installation

[](#installation)

The preferred way to install this extension is through [Composer](https://getcomposer.org/download/) .

```
composer require undefinedor/yii2-cached-active-record

```

### Configuration

[](#configuration)

In order to use CachedActiveRecord, a valid cache component must be enabled. For Example:

```
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
    ],
```

### Usage

[](#usage)

It's so easy to use ,you just need to use \[\[undefinedor\\yii2\\CachedActiveRecord\]\] For example,

```
