hyperf / hyperf/socketio-server
redis 配置
- Langage dominant
- PHP
- Étoiles
- 26
- Forks
- 6
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
1、我在使用的时候,重新配置了Hyperf\SocketIOServer\Room\AdapterInterface::class的对应关系,并在构造函数中修改了redis的配置信息,将dbIndex从0改动到了3.启动后数据仍然保存在db0中,如果通过watcher监听器重启,数据会同时储存在db0和db3中。
2、引入的tarit类Emitter在Hyperf\SocketIOServer\BaseNamespace中,虽然书写的时候避免方法名称冲突,可以避免问题。但是如果使用调度器模式,是不是会更方便。
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by reproducing the Redis dbIndex behavior after rebinding Hyperf\SocketIOServer\Room\AdapterInterface::class and after a watcher restart. Inspect the constructor configuration and Hyperf\SocketIOServer\BaseNamespace, including its Emitter usage and dispatcher-mode question. Done means the intended database is used consistently and the Emitter design question has a documented decision.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php, redis
- Domaine
- backend, databases
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100