MCPcopy Create free account
hub / github.com/TanStack/db / getCachedHash

Function getCachedHash

packages/db-ivm/src/hashing/hash.ts:190–196  ·  view source on GitHub ↗
(input: object)

Source from the content-addressed store, hash-verified

188}
189
190function getCachedHash(input: object): number {
191 let valueHash = hashCache.get(input)
192 if (valueHash === undefined) {
193 valueHash = hashObject(input)
194 }
195 return valueHash
196}
197
198let nextRefId = 1
199function cachedReferenceHash(fn: object): number {

Callers 1

updateHasherFunction · 0.85

Calls 2

hashObjectFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected