MCPcopy
hub / github.com/multica-ai/multica / patCacheKey

Function patCacheKey

server/internal/auth/pat_cache.go:41–41  ·  view source on GitHub ↗
(hash string)

Source from the content-addressed store, hash-verified

39}
40
41func patCacheKey(hash string) string { return patCachePrefix + hash }
42
43// Get returns the cached user_id for a token hash. ok=false on cache miss
44// or any Redis error — a dead Redis must not take down auth.

Callers 5

TestPATCache_TTLFunction · 0.85
GetMethod · 0.85
SetMethod · 0.85
InvalidateMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestPATCache_TTLFunction · 0.68