MCPcopy Index your code
hub / github.com/saltstack/salt / _hash

Method _hash

salt/utils/mmap_cache.py:982–983  ·  view source on GitHub ↗
(self, key_bytes)

Source from the content-addressed store, hash-verified

980 # ------------------------------------------------------------------
981
982 def _hash(self, key_bytes):
983 return (xxhash.xxh3_64_intdigest(key_bytes) % (self.size - 1)) + 1
984
985 def _find_slot(self, key_bytes):
986 """

Callers 4

_find_slotMethod · 0.95
getMethod · 0.95
get_mtimeMethod · 0.95
deleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected