Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
func
NewCache(maxSizeMB int) *Cache {
8
return
&Cache{
9
artworkCache: make(
map
[string][]byte),
10
}
11
}
12
13
func
(c *Cache) GetArtwork(filePath string) ([]byte, bool) {
14
data, exists := c.artworkCache[filePath]
Callers
2
show.go
File · 0.92
NewApp
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected