go-redis
go-redis copied to clipboard
Redis Go client
I have a pipeline of Set followed by Expire, but they arrive out of order and therefore the key never expires. What seems to be happening is this Set ->...
I got the error of `redis: can't parse int reply: "*0"`, when use the command: `GeoRadiusStore`, if the key is empty
Can we make pool.ErrClosed public? Or provide a public method to determine if a given error is it?
Many times, we need to downgrade to another instance after one client instance is closed, but it seems insecure to detect errors through string matching.
I'm using the the `parseURL` function and connecting works fine when using a simple localhost connection string, but when using our production string that has username and password I get...
See https://github.com/go-redis/redis/pull/1883 ``` WARNING: DATA RACE Read at 0x00c0005be268 by goroutine 162: github.com/go-redis/redis/v8.(*baseCmd).Err() /home/runner/work/redis/redis/command.go:171 +0x3e github.com/go-redis/redis/v8.(*StringCmd).Err() :1 +0x44 github.com/go-redis/redis/v8.setCmdsErr() /home/runner/work/redis/redis/command.go:34 +0x84 github.com/go-redis/redis/v8.(*ClusterClient)._processTxPipeline.func1() /home/runner/work/redis/redis/cluster.go:1321 +0x2b5 Previous write at 0x00c0005be268 by goroutine...
connect redis via go-redis package v8, but get error: i/o timeout. connection code: ` rdb := redis.NewClient(&redis.Options{ Addr: config.GConfig.Dependency.Redis.Address, Password: config.GConfig.Dependency.Redis.Password, DB: 0, }) ` the Address is Azure redis...
```go // rdb is *ClusterClient master := rdb.MasterForKey("some-redis-key") nodes := rdb.NodesForKey("some-redis-key") ``` Perhaps it should be leader instead of master, but we already use master in other places... https://github.com/go-redis/redis/discussions/1856
## Expected Behavior When restarting the Redis server, due to the default of `MaxRetries: 3`, I'd expect go-redis to attempt to reconnect to the server and retry the query. ##...