mirror of
https://github.com/redis/go-redis.git
synced 2025-11-14 10:22:26 +03:00
* add cas/cad commands
* feat(command): Add SetIFDEQ, SetIFDNE and *Get cmds
Decided to move the *Get argument as a separate methods, since the
response will be always the previous value, but in the case where
the previous value is `OK` there result may be ambiguous.
* fix tests
* matchValue to be interface{}
* Only Args approach for DelEx
* use uint64 for digest, add example
* test only for 8.4
17 lines
397 B
Modula-2
17 lines
397 B
Modula-2
module github.com/redis/go-redis/example/digest-optimistic-locking
|
|
|
|
go 1.18
|
|
|
|
replace github.com/redis/go-redis/v9 => ../..
|
|
|
|
require (
|
|
github.com/redis/go-redis/v9 v9.16.0
|
|
github.com/zeebo/xxh3 v1.0.2
|
|
)
|
|
|
|
require (
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
|
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
|
|
)
|