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

Function contentHash

packages/memos-core/src/storage/sqlite.ts:3356–3358  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

3354
3355
3356function contentHash(content: string): string {
3357 return createHash("sha256").update(content).digest("hex").slice(0, 16);
3358}

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