yii2-redis
yii2-redis copied to clipboard
Yii 2 Redis extension.
I propose to explicitly define next methods in \yii\redis\Connection ``` php public function hSet($key, array $data); public function hMset($key, array $data); public function hGetAll($key); ``` To work with redis hashes...
### What steps will reproduce the problem? Here a console command action: ```php public function actionTest(): void { $cache = Yii::$app->cache; $this->stdout('Cache class is `' . \get_class($cache) . '`' ....
| Yii vesion 2.0.15 | PHP version 7.1 | Operating system centos redis:4.0.2 `/** * Session read handler. * Do not call this method directly. * @param string $id session...
Hello, I'm not sure if this feature is implemented in Yii2-redis extension.... but I wanted to work with Pub/Sub using this extension, specifically receive messages of a subscribed key in...
This issue has originally been reported by @nineinchnick at https://github.com/yiisoft/yii2/issues/1932. Moved here by @cebe. --- When (P)SUBSCRIBE is called in Redis a client is not supposed to execute any more...
ActiveRecord is very flat and slow (if we have many records at redis hash) when we try get with where condition. For example: ``` php RedisModelAR::find() ->where(['login' => $login]) ->one();...
As soon as we using unit-testing, fixtures is important. I think, yii2-redis must have possibility to create fixtures. I have some version of that in my local repo: https://gist.github.com/iworker/9428926f1d0ae5e22f11 Hope,...
Redis `SORT` command returns an error on slave instances and `orderBy()` always returns empty result. To reproduce the problem make Redis master and slave, make and add any `ActiveRecord` model....
Nows the log format is: 2017-08-03 02:19:50 [-][-][-][trace][yii\redis\Connection::open] Opening redis DB connection: 192.168.0.11:6379, database=0 2017-08-03 02:19:50 [-][-][-][trace][yii\redis\Connection::executeCommand] Executing Redis Command: SELECT 2017-08-03 02:19:50 [-][-][-][trace][yii\redis\Connection::executeCommand] Executing Redis Command: INCR 2017-08-03 02:19:50...
Consider to apply feature yiisoft/yii2#8670 for `yii\redis\Session`.