MCPcopy Index your code
hub / github.com/kopia/kopia / applyDefaults

Method applyDefaults

internal/cache/persistent_lru_cache.go:423–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

421}
422
423func (s SweepSettings) applyDefaults() SweepSettings {
424 if s.TouchThreshold == 0 {
425 s.TouchThreshold = DefaultTouchThreshold
426 }
427
428 return s
429}
430
431// NewPersistentCache creates the persistent cache in the provided storage.
432func NewPersistentCache(ctx context.Context, description string, cacheStorage Storage, storageProtection cacheprot.StorageProtection, sweep SweepSettings, mr *metrics.Registry, timeNow func() time.Time) (*PersistentCache, error) {

Callers 1

NewPersistentCacheFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected