Skip to content

Redis pubsub support #56

@yii-bot

Description

@yii-bot

This issue has originally been reported by @nineinchnick at yiisoft/yii2#1932.
Moved here by @cebe.


When (P)SUBSCRIBE is called in Redis a client is not supposed to execute any more commands except for (P)(UN)SUBSCRIBE.
He then should listen for incoming messages.

This can be achieved by making parseResponse() public. Also, either it has to return null on timeout instead of an exception or throw a different exception so it can be caught. Or at least one with a different code.

I require this in my queue implementation that I'm working on for yiisoft/yii2#492.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions