go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

Redis Go client

Results 292 go-redis issues
Sort by recently updated
recently updated
newest added

fix #2077 feature: ring.SetAddrs to add and remove shards by the ring client #2093 tests: to scale in and out Signed-off-by: Sandor Szücs

## Expected Behavior I have an HTTP server where every request triggers a query to a Redis cluster. When the backends are down, I expect each Get call to return...

it takes too long to reload the latest state of cluster when the cluster recovered from one master node going down。 when the cluster recovered, should not we reload the...

```golang err := rdb.HGetAll(ctx, "nonsense").Scan(&resultstruct1) // Verify key exists if err == redis.Nil { log.Printf("Empty record") } ``` Gives no logs ```golang err := rdb.Get(ctx, "nonsense") // Verify key exists...

## Expected Behavior Client should return an empty response. ## Current Behavior Client blocks forever, even with timeouts set.. ## Possible Solution Will investigate. ## Steps to Reproduce ``` package...

Hi! My app's logs are full of errors that look like this: ``` redis: 2022/06/18 01:21:35 sentinel.go:587: sentinel: GetMasterAddrByName name="gprd-redis" failed: context canceled redis: 2022/06/18 01:21:35 sentinel.go:587: sentinel: GetMasterAddrByName name="gprd-redis"...

tag v8.0.0-beta.6 NewScanCmd has parameter process cmdable cmdable is not public interface. So we can't pass a value to a cmdable this is my cmdale `type tairCmdable func(ctx context.Context, cmd...

I've been using prometheus to aggregate the pool stats provided by the clients and thought the implementation might be helpful for others as well.

**Version**: github.com/go-redis/redis/v8 v8.11.4 Hi, I found the test case(https://github.com/go-redis/redis/blob/e061db8c13fd6b5e007d73370873026e360719de/redis_test.go#L274),`time.Time` can be scanned to object. But it's wrong when I used it in `hmget(...).scan(&u)` ![image](https://user-images.githubusercontent.com/32825698/179652305-4f1a8db7-c2e1-43d8-a933-cb9ff38bccab.png) ```go type User struct { Name...

Currently, the v9 go-redis version is always trying to use RESP3 and in case of failure, it will fall back to resp2. However, even on scenarios that the server supports...

enhancement
help-wanted