mirror of
https://github.com/elyby/accounts.git
synced 2024-11-16 10:14:02 +05:30
14 lines
261 B
PHP
14 lines
261 B
PHP
|
<?php
|
||
|
namespace common\components\Redis;
|
||
|
|
||
|
use yii\di\Instance;
|
||
|
|
||
|
class Cache extends \yii\redis\Cache {
|
||
|
|
||
|
public function init() {
|
||
|
\yii\caching\Cache::init();
|
||
|
$this->redis = Instance::ensure($this->redis, ConnectionInterface::class);
|
||
|
}
|
||
|
|
||
|
}
|