MCPcopy
hub / github.com/dragonflyoss/dragonfly / PersistentCacheTaskIDByContent

Function PersistentCacheTaskIDByContent

pkg/idgen/task_id.go:186–188  ·  view source on GitHub ↗

PersistentCacheTaskIDByContent generates persistent cache task id by content.

(content string)

Source from the content-addressed store, hash-verified

184
185// PersistentCacheTaskIDByContent generates persistent cache task id by content.
186func PersistentCacheTaskIDByContent(content string) string {
187 return pkgdigest.SHA256FromStrings(content)
188}

Callers 2

dfcache_test.goFile · 0.92

Calls

no outgoing calls

Tested by 1