mix-php / mix

☄️ PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架,支持 Swoole、Swow、WorkerMan、FPM、CLI-Server
https://openmix.org/mix-php
Apache License 2.0
1.94k stars 212 forks source link

Redis-subscribe 支持 prefix 否? #100

Closed maimake closed 2 years ago

maimake commented 2 years ago

我正在使用 hyperf/socketio-server 这个库来开发项目,但发现无法 subscribe,通过 redis monitor 查看,看到 subscribe 没有用 hyperf 的 redis 前缀。是不是我忘记什么配置了?

Redis-subscribe 支持 prefix 否?

Hyperf\SocketIOServer\Room\SubscriberFactory

$sub = new Subscriber($host, $port, $pass ?? '', 5);
onanying commented 2 years ago

@maimake 我感觉你应该问问hf,我这个库就是支持 redis 的 subscribe 而已,不支持 psubscribe