hyperf / hyperf/socketio-server

怎么配置 redis 的connection呢

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
26
Forks
6
PR merge metrics
No merged PRs in 30d

Description

我看 connection 都写死在 代码里的。我想换个 connection ,只能通过创建几个类用 dependencies.php 替换吗?

还有个依赖库已经废弃了
```
Package mix/redis-subscribe is abandoned, you should avoid using it. Use mix/redis-subscriber instead.
```
并且这个依赖库,不支持 prefix,导致本库根本就用不了 https://github.com/mix-php/mix/issues/100#event-6088492645

目前我是另外通过 class_map让它支持prefix的

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the hard-coded Redis connection and reviewing dependencies.php and the current class_map workaround. Check the abandoned mix/redis-subscribe dependency, the suggested mix/redis-subscriber replacement, and the linked upstream issue about prefix support; done should include a documented way to select a connection and resolve the prefix limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, redis
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.