MCPcopy Create free account
hub / github.com/QuantumNous/new-api / getTokenCacheKey

Function getTokenCacheKey

model/token_cache.go:12–14  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

10)
11
12func getTokenCacheKey(key string) string {
13 return fmt.Sprintf("token:%s", common.GenerateHMAC(key))
14}
15
16func getTokenCacheFenceKey(key string) string {
17 return fmt.Sprintf("token:fence:%s", common.GenerateHMAC(key))

Callers 5

cacheInitTokenFunction · 0.85
cacheGetTokenByKeyFunction · 0.85

Calls 1

GenerateHMACFunction · 0.92

Tested by

no test coverage detected