Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shipSun opened this issue Sep 3, 2019 · 6 comments
Open

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

shipSun opened this issue Sep 3, 2019 · 6 comments
Labels
help wanted status:to be verified Needs to be reproduced and validated. type:enhancement Enhancement

Comments

@shipSun
Copy link

shipSun commented Sep 3, 2019

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

@samdark samdark changed the title redis发布/订阅,无法持续获取推送数据 Redis publish/subscribe, unable to continuously get push data Sep 3, 2019
@samdark samdark changed the title Redis publish/subscribe, unable to continuously get push data Redis publish/subscribe, unable to get push data Sep 3, 2019
@samdark
Copy link
Member

samdark commented Sep 3, 2019

@shipSun have I translated the issue alright?

@shipSun
Copy link
Author

shipSun commented Sep 3, 2019

@shipSun have I translated the issue alright?

of course

@samdark samdark added status:to be verified Needs to be reproduced and validated. help wanted labels Sep 3, 2019
@samdark
Copy link
Member

samdark commented Sep 3, 2019

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

@shipSun
Copy link
Author

shipSun commented Sep 3, 2019

Pub/sub mode
Continuous access to publish data

@shipSun
Copy link
Author

shipSun commented Sep 3, 2019

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

@samdark samdark added type:enhancement Enhancement status:to be verified Needs to be reproduced and validated. help wanted and removed status:need more info status:to be verified Needs to be reproduced and validated. labels Sep 3, 2019
@kayw-geek
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted status:to be verified Needs to be reproduced and validated. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants