You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm not sure if this feature is implemented in Yii2-redis extension....
but I wanted to work with Pub/Sub using this extension, specifically receive messages of a subscribed key in Redis. Publish part is working fine instead.
I have tried several ways to receive the messages from other publishers:
Passing as the latest parameter an array formed by [, ] or a string with the function name. This is how native PHP redis driver works. But I get an error saying: 'mb_strlen() expects parameter 1 to be string, object given'
The redis connection is currently developed to work with commands that do return values and end then. the subscribe command will receive data and never stop until it unsubscribes, so this is currently not supported.
Hello, I'm not sure if this feature is implemented in Yii2-redis extension....
but I wanted to work with Pub/Sub using this extension, specifically receive messages of a subscribed key in Redis. Publish part is working fine instead.
I have tried several ways to receive the messages from other publishers:
or
The following code doesn't throw any error, but I don't know how to receive the messages when other processes publish in the key 'sync':
Anyone has a working example of this?
I also put this question in yiiframework forums here
Thank you!
The text was updated successfully, but these errors were encountered: