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

Method Set

internal/services/metadata/cache.go:51–57  ·  view source on GitHub ↗

Set stores the episode count with a TTL expiry.

(title string, season int, count int)

Source from the content-addressed store, hash-verified

49
50// Set stores the episode count with a TTL expiry.
51func (c *resultCache) Set(title string, season int, count int) {
52 key := cacheKey(title, season)
53 c.entries.Store(key, cacheEntry{
54 count: count,
55 expires: time.Now().Add(cacheTTL),
56 })
57}

Callers 15

ParseMethod · 0.45
NormalizeMethod · 0.45
SearchIndexerMethod · 0.45
GetIndexersMethod · 0.45
GetIndexerMethod · 0.45
getMethod · 0.45
dsnWithSearchPathFunction · 0.45
getStmtMethod · 0.45
buildPostgresDSNFunction · 0.45
rewriteRequestMethod · 0.45
applyAuthHeadersMethod · 0.45

Calls 3

AddMethod · 0.80
cacheKeyFunction · 0.70
StoreMethod · 0.65