MCPcopy
hub / github.com/dragonflyoss/dragonfly / cache

Struct cache

pkg/cache/cache.go:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79type cache struct {
80 defaultExpiration time.Duration
81 items map[string]Item
82 mu sync.RWMutex
83 onEvicted func(string, any)
84 janitor *janitor
85}
86
87// Scan all items to get a specified number of matching regexp key.
88func (c *cache) Scan(m string, n int) ([]string, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected