Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ item
Struct
item
cache/lru.go:14–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
)
13
14
type
item
struct
{
15
key string
16
value any
17
18
// the frequency of key
19
freq int
20
}
21
22
type
LRU
struct
{
23
dl *linkedlist.Doubly[any]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected