MCPcopy Create free account
hub / github.com/capable-average/tagTonic / NewCache

Function NewCache

tui/cache.go:7–11  ·  view source on GitHub ↗
(maxSizeMB int)

Source from the content-addressed store, hash-verified

5}
6
7func NewCache(maxSizeMB int) *Cache {
8 return &Cache{
9 artworkCache: make(map[string][]byte),
10 }
11}
12
13func (c *Cache) GetArtwork(filePath string) ([]byte, bool) {
14 data, exists := c.artworkCache[filePath]

Callers 2

show.goFile · 0.92
NewAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected