MCPcopy Create free account
hub / github.com/pace/bricks / Memory

Struct Memory

pkg/cache/memory.go:16–19  ·  view source on GitHub ↗

Memory is the cache that stores everything in memory. It is safe for concurrent use.

Source from the content-addressed store, hash-verified

14// Memory is the cache that stores everything in memory. It is safe for
15// concurrent use.
16type Memory struct {
17 values map[string]inMemoryValue
18 mx sync.RWMutex
19}
20
21type inMemoryValue struct {
22 value []byte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected