MCPcopy
hub / github.com/redis/redis-py / _server_xxh3_digest

Method _server_xxh3_digest

tests/test_commands.py:1854–1860  ·  view source on GitHub ↗

Get the server-computed XXH3 hex digest for the key's value. Requires the DIGEST command implemented on the server.

(self, r, key)

Source from the content-addressed store, hash-verified

1852 return x.decode("ascii") if isinstance(x, (bytes, bytearray)) else x
1853
1854 def _server_xxh3_digest(self, r, key):
1855 """
1856 Get the server-computed XXH3 hex digest for the key's value.
1857 Requires the DIGEST command implemented on the server.
1858 """
1859 d = r.execute_command("DIGEST", key)
1860 return None if d is None else self._ensure_str(d).lower()
1861
1862 @skip_if_server_version_lt("8.3.224")
1863 def test_delex_nonexistent(self, r):

Callers 2

Calls 2

_ensure_strMethod · 0.95
execute_commandMethod · 0.45

Tested by

no test coverage detected