1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Merge branch 'master' into v9

Signed-off-by: monkey <golang@88.com>
This commit is contained in:
monkey
2021-07-24 22:10:04 +08:00
21 changed files with 414 additions and 71 deletions

View File

@ -417,7 +417,7 @@ func ExampleClient_Watch() {
// Actual opperation (local in optimistic lock).
n++
// Operation is commited only if the watched keys remain unchanged.
// Operation is committed only if the watched keys remain unchanged.
_, err = tx.TxPipelined(ctx, func(pipe redis.Pipeliner) error {
pipe.Set(ctx, key, n, 0)
return nil