Open Raindrifter opened 9 months ago
Related issue:
redis/go-redis#2910
redis/go-redis#2911
temp resolve: opt.DisableIndentity = true
type FixedRedisClientOpt struct {
Addr string
Password string
DB int
}
func (opt FixedRedisClientOpt) MakeRedisClient() interface{} {
return redis.NewClient(&redis.Options{
Addr: opt.Addr,
Password: opt.Password,
DB: opt.DB,
DisableIndentity: true,
})
}
asynq.NewClient(FixedRedisClientOpt{Addr: "localhost:6379", Password: "password", DB: 0})
Known bug with v9.5.0. If you are using Redis elsewhere or sharing a connection pool, you can expect this problem. We will hold off on bumping go-redis in this library for now.
Describe the bug when connect to older redis (undex7.2.x) , will report error.
To Reproduce go.mod : asynq v0.24.1 go-redis/v9 v9.5.0
Expected behavior
Screenshots
Environment (please complete the following information):
asynq
package: asynq v0.24.1