MCPcopy
hub / github.com/kopia/kopia / BlobIDCacheKey

Function BlobIDCacheKey

internal/cache/content_cache.go:52–54  ·  view source on GitHub ↗

BlobIDCacheKey computes the cache key for the provided blob ID.

(id blob.ID)

Source from the content-addressed store, hash-verified

50
51// BlobIDCacheKey computes the cache key for the provided blob ID.
52func BlobIDCacheKey(id blob.ID) string {
53 return string(id[1:] + id[0:1])
54}
55
56func (c *contentCacheImpl) GetContent(ctx context.Context, contentID string, blobID blob.ID, offset, length int64, output *gather.WriteBuffer) error {
57 if c.fetchFullBlobs {

Callers 5

TestPrefetchContentMethod · 0.92
fetchBlobInternalMethod · 0.85
PrefetchBlobMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestPrefetchContentMethod · 0.74