MCPcopy
hub / github.com/kopia/kopia / newContentMetadataCache

Function newContentMetadataCache

internal/cache/content_cache_concurrency_test.go:34–43  ·  view source on GitHub ↗
(ctx context.Context, st blob.Storage, cacheStorage cache.Storage)

Source from the content-addressed store, hash-verified

32}
33
34func newContentMetadataCache(ctx context.Context, st blob.Storage, cacheStorage cache.Storage) (cache.ContentCache, error) {
35 return cache.NewContentCache(ctx, st, cache.Options{
36 Storage: cacheStorage,
37 HMACSecret: []byte{1, 2, 3, 4},
38 FetchFullBlobs: true,
39 Sweep: cache.SweepSettings{
40 MaxSizeBytes: 100,
41 },
42 }, nil)
43}
44
45func TestPrefetchBlocksGetContent_DataCache(t *testing.T) {
46 t.Parallel()

Callers

nothing calls this directly

Calls 1

NewContentCacheFunction · 0.92

Tested by

no test coverage detected