MCPcopy Create free account
hub / github.com/devfeel/dotweb / RuntimeCache

Struct RuntimeCache

cache/runtime/cache_runtime.go:35–40  ·  view source on GitHub ↗

RuntimeCache is runtime cache adapter. it contains a RW locker for safe map storage.

Source from the content-addressed store, hash-verified

33// RuntimeCache is runtime cache adapter.
34// it contains a RW locker for safe map storage.
35type RuntimeCache struct {
36 sync.RWMutex //only used with Incr\Decr
37 gcInterval time.Duration
38 items *sync.Map
39 //itemsMap map[string]*RuntimeItem
40}
41
42// NewRuntimeCache returns a new *RuntimeCache.
43func NewRuntimeCache() *RuntimeCache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected