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

Function NewWatchCacheStore

pkg/util/cache/watch_cache.go:33–40  ·  view source on GitHub ↗
(defaultExpiration, cleanupInterval time.Duration)

Source from the content-addressed store, hash-verified

31}
32
33func NewWatchCacheStore(defaultExpiration, cleanupInterval time.Duration) *WatchCacheStore {
34 cache := New(defaultExpiration, cleanupInterval)
35 wc := &WatchCacheStore{
36 cache: cache,
37 available: true,
38 }
39 return wc
40}
41
42func (wc *WatchCacheStore) Flush() {
43 wc.cache.Flush()

Callers

nothing calls this directly

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected