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

Function getUserCacheKey

model/user_cache.go:50–52  ·  view source on GitHub ↗

getUserCacheKey returns the key for user cache

(userId int)

Source from the content-addressed store, hash-verified

48
49// getUserCacheKey returns the key for user cache
50func getUserCacheKey(userId int) string {
51 return fmt.Sprintf("user:%d", userId)
52}
53
54func userCacheTTLSeconds() int {
55 ttl := common.RedisKeyCacheSeconds()

Calls

no outgoing calls