DIGEST
Since 1.1.0Strings
Syntax
DIGEST keyReturns a digest of the string at key: the XXH3 64-bit hash of the value, as 16 hexadecimal digits. It is what the IFDEQ and IFDNE conditions of SET and DELEX compare against, so a client can make a write conditional on a large value without sending the value back. KiviDB computes the same digest as Redis.
Reply
- The digest, as a bulk string.
nilif the key does not exist.
Examples
> SET d hello
OK
> DIGEST d
"9555e8555c62dcfd"