yiisoft / yii2-redis

Yii 2 Redis extension.
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
452 stars 183 forks source link

Redis publish/subscribe, unable to get push data #186

Open shipSun opened 5 years ago

shipSun commented 5 years ago

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

samdark commented 5 years ago

@shipSun have I translated the issue alright?

shipSun commented 5 years ago

@shipSun have I translated the issue alright?

of course

samdark commented 5 years ago

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

shipSun commented 5 years ago

Pub/sub mode Continuous access to publish data

shipSun commented 5 years ago

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

kayw-geek commented 4 years ago

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

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