MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / cacheDeleteToken

Function cacheDeleteToken

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

Source from the content-addressed store, hash-verified

18}
19
20func cacheDeleteToken(key string) error {
21 key = common.GenerateHMAC(key)
22 err := common.RedisDelKey(fmt.Sprintf("token:%s", key))
23 if err != nil {
24 return err
25 }
26 return nil
27}
28
29func cacheIncrTokenQuota(key string, increment int64) error {
30 key = common.GenerateHMAC(key)

Callers 2

DeleteMethod · 0.85
BatchDeleteTokensFunction · 0.85

Calls 2

GenerateHMACFunction · 0.92
RedisDelKeyFunction · 0.92

Tested by

no test coverage detected