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

Method SetAvailable

pkg/util/cache/watch_cache.go:46–54  ·  view source on GitHub ↗
(available bool)

Source from the content-addressed store, hash-verified

44}
45
46func (wc *WatchCacheStore) SetAvailable(available bool) {
47 if available == wc.available {
48 return
49 }
50 if available == false {
51 wc.Flush()
52 }
53 wc.available = available
54}
55
56func (wc *WatchCacheStore) Get(k string) (interface{}, error) {
57 if !wc.available {

Callers

nothing calls this directly

Calls 1

FlushMethod · 0.95

Tested by

no test coverage detected