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

Method CacheExpiration

pkg/controller/function/cache.go:62–67  ·  view source on GitHub ↗
(cacheType CacheType)

Source from the content-addressed store, hash-verified

60}
61
62func (s *StorageCache) CacheExpiration(cacheType CacheType) time.Duration {
63 if time, ok := s.cacheExpirationConfigs[cacheType]; ok {
64 return time
65 }
66 return defaultCacheExpiration
67}

Callers 3

GetFunctionMethod · 0.80
GetAliasMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected