yii2-redis
yii2-redis copied to clipboard
Redis publish/subscribe, unable to get push data
I suggest yii2-redis\src\Connection changing Private function parseResponse($command) to Public function parseResponse($command).
@shipSun have I translated the issue alright?
@shipSun have I translated the issue alright?
of course
@shipSun what's your use case for calling parseResponse() directly?
Pub/sub mode Continuous access to publish data
Yii::$app->redis->subscribe(‘test’); while(tire){ Yii::$app->redis->parseResponse(subscribe listen); }
Yii::$app->redis->subscribe(‘test’); while(tire){ Yii::$app->redis->parseResponse(subscribe listen); }
请问 subscribe listen 代表什么? tire是否为true ?