Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3356
function
contentHash(content: string): string {
3357
return
createHash(
"sha256"
).update(content).digest(
"hex"
).slice(0, 16);
3358
}
Callers
4
migrateContentHash
Method · 0.70
insertChunk
Method · 0.70
chunkExistsByContent
Method · 0.70
findActiveChunkByHash
Method · 0.70
Calls
1
update
Method · 0.45
Tested by
no test coverage detected