(ctx context.Context, st blob.Storage, cacheStorage cache.Storage)
| 22 | type newContentCacheFunc func(ctx context.Context, st blob.Storage, cacheStorage cache.Storage) (cache.ContentCache, error) |
| 23 | |
| 24 | func newContentDataCache(ctx context.Context, st blob.Storage, cacheStorage cache.Storage) (cache.ContentCache, error) { |
| 25 | return cache.NewContentCache(ctx, st, cache.Options{ |
| 26 | Storage: cacheStorage, |
| 27 | HMACSecret: []byte{1, 2, 3, 4}, |
| 28 | Sweep: cache.SweepSettings{ |
| 29 | MaxSizeBytes: 100, |
| 30 | }, |
| 31 | }, nil) |
| 32 | } |
| 33 | |
| 34 | func newContentMetadataCache(ctx context.Context, st blob.Storage, cacheStorage cache.Storage) (cache.ContentCache, error) { |
| 35 | return cache.NewContentCache(ctx, st, cache.Options{ |
nothing calls this directly
no test coverage detected