yii2-redis icon indicating copy to clipboard operation
yii2-redis copied to clipboard

Redis publish/subscribe, unable to get push data

Open shipSun opened this issue 6 years ago • 6 comments

I suggest yii2-redis\src\Connection changing Private function parseResponse($command) to Public function parseResponse($command).

shipSun avatar Sep 03 '19 08:09 shipSun

@shipSun have I translated the issue alright?

samdark avatar Sep 03 '19 12:09 samdark

@shipSun have I translated the issue alright?

of course

shipSun avatar Sep 03 '19 16:09 shipSun

@shipSun what's your use case for calling parseResponse() directly?

samdark avatar Sep 03 '19 16:09 samdark

Pub/sub mode Continuous access to publish data

shipSun avatar Sep 03 '19 17:09 shipSun

Yii::$app->redis->subscribe(‘test’); while(tire){ Yii::$app->redis->parseResponse(subscribe listen); }

shipSun avatar Sep 03 '19 18:09 shipSun

Yii::$app->redis->subscribe(‘test’); while(tire){ Yii::$app->redis->parseResponse(subscribe listen); }

请问 subscribe listen 代表什么? tire是否为true ?

kayw-geek avatar Jul 15 '20 05:07 kayw-geek