MCPcopy
hub / github.com/autobrr/qui / cacheKey

Function cacheKey

internal/services/metadata/cache.go:28–30  ·  view source on GitHub ↗
(title string, season int)

Source from the content-addressed store, hash-verified

26}
27
28func cacheKey(title string, season int) string {
29 return fmt.Sprintf("%s:%d", strings.ToLower(strings.TrimSpace(title)), season)
30}
31
32// Get returns the cached episode count and true if a non-expired entry exists.
33func (c *resultCache) Get(title string, season int) (int, bool) {

Callers 4

GetMethod · 0.70
SetMethod · 0.70
TestCacheKeyFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestCacheKeyFunction · 0.56