-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
Description
Version:
github.com/redis/go-redis/v9 v9.7.0
I'm connect:
redis := redis.NewClient(&redis.Options{
Network: settings.RedisNetwork,
Addr: settings.RedisAddr,
Password: settings.RedisPassword,
DB: 0,
MaxActiveConns: 10,
MaxIdleConns: 1,
ConnMaxLifetime: time.Minute,
})
defer redis.Close()
_, err := redis.Ping(ctx).Result()
if err != nil {
log.Fatalf("Error connecting redis: %s", err.Error())
}Then I use redis in my daemon all it's lifetime:
res, err := redis.RPop(ctx, key).Result()
if err != nil{
panic(err)
}I don't have any other usage of Redis.
So it works for days perfectly, but then I get next error:
ERR Syntax error, try CLIENT (LIST | KILL | GETNAME | SETNAME | PAUSE | REPLY)
I don't know if it's a bug in my version of redis or a bug in the library. For me it looks like I call "rpop my_key", redis answers "I don't know your command". Help me, please.