MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / NewStorageCache

Function NewStorageCache

pkg/controller/function/cache.go:47–52  ·  view source on GitHub ↗
(expirationConfig map[CacheType]time.Duration)

Source from the content-addressed store, hash-verified

45}
46
47func NewStorageCache(expirationConfig map[CacheType]time.Duration) *StorageCache {
48 return &StorageCache{
49 expirationConfig,
50 cache.New(defaultCacheExpiration, defaultCacheCleanupInterval),
51 }
52}
53
54func DefaultCacheExpirationConfigs() map[CacheType]time.Duration {
55 conf := make(map[CacheType]time.Duration, 0)

Callers 1

InitFunction · 0.92

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected