MCPcopy Create free account
hub / github.com/PacktPublishing/System-Programming-Essentials-with-Go / entry

Struct entry

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

entry is a helper struct that stores a cache item along with its key

Source from the content-addressed store, hash-verified

14
15// entry is a helper struct that stores a cache item along with its key
16type entry struct {
17 key string
18 value CacheItem
19}
20
21// Cache represents a thread-safe in-memory cache with TTL and LRU eviction policies
22type Cache struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected