MCPcopy Create free account
hub / github.com/MemTensor/MemOS / contentHash

Function contentHash

apps/memos-local-openclaw/src/storage/sqlite.ts:3494–3496  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

3492
3493
3494function contentHash(content: string): string {
3495 return createHash("sha256").update(content).digest("hex").slice(0, 16);
3496}

Callers 4

migrateContentHashMethod · 0.70
insertChunkMethod · 0.70
chunkExistsByContentMethod · 0.70
findActiveChunkByHashMethod · 0.70

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected