-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Redis 连接异常 #2562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@NewBee6 新版本没复现你的问题。
|
1.我的redis是正常的。用的是:github.com/redis/go-redis/v9@v9.0.2 `type Redis redis.Cmdable func NewRedis(cfg RedisConfig) (Redis, error) {
}` 发现: redisClient2 := redis.NewClient(redisOptions) |
Question and Steps to reproduce
报错位置:center.go文件
具体代码:
var redis storage.Redis
redis, err = storage.NewRedis(config.Redis)
if err != nil {
return nil, err
}
获取的到redis是:unreadable: invalid interface type
Relevant logs and configurations
Version
7.7.2
The text was updated successfully, but these errors were encountered: