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
- Host: GitHub
- URL: https://github.com/undefinedor/yii2-cachedactiverecord
- Owner: undefinedor
- License: mit
- Created: 2016-06-03T03:51:04.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T15:28:54.000Z (about 9 years ago)
- Last Synced: 2025-07-01T05:04:49.674Z (about 1 year ago)
- Topics: yii2
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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