MCPcopy
hub / github.com/kopia/kopia / getFull

Method getFull

internal/cache/persistent_lru_cache.go:94–96  ·  view source on GitHub ↗

getFull fetches the contents of a full blob. Returns false if not found.

(ctx context.Context, key string, output *gather.WriteBuffer)

Source from the content-addressed store, hash-verified

92
93// getFull fetches the contents of a full blob. Returns false if not found.
94func (c *PersistentCache) getFull(ctx context.Context, key string, output *gather.WriteBuffer) bool {
95 return c.getPartial(ctx, key, 0, -1, output)
96}
97
98func (c *PersistentCache) getPartialCacheHit(ctx context.Context, key string, length int64, output *gather.WriteBuffer) {
99 // cache hit

Callers 3

TestingGetFullMethod · 0.95
GetOrLoadMethod · 0.95

Calls 1

getPartialMethod · 0.95

Tested by 1

TestingGetFullMethod · 0.76