1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-16 09:23:06 +03:00
This commit is contained in:
MengZeLee 2021-07-22 10:27:46 +08:00 committed by GitHub
parent 54ef62f9b7
commit 704212eaae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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