An open API service indexing awesome lists of open source software.

https://github.com/undefinedor/yii2-cachedactiverecord

CachedActiveRecord For Yii2
https://github.com/undefinedor/yii2-cachedactiverecord

yii2

Last synced: 12 months ago
JSON representation

CachedActiveRecord For Yii2

Awesome Lists containing this project

README

          

# CachedActiveRecord For Yii2

### Installation
The preferred way to install this extension is through [Composer](https://getcomposer.org/download/) .
```
composer require undefinedor/yii2-cached-active-record
```

### Configuration
In order to use CachedActiveRecord, a valid cache component must be enabled.
For Example:
```php
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
],
```
### Usage
It's so easy to use ,you just need to use [[undefinedor\yii2\CachedActiveRecord]]
For example,
```php