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

Function populateUserCache

model/user_cache.go:76–81  ·  view source on GitHub ↗
(user User)

Source from the content-addressed store, hash-verified

74}
75
76func populateUserCache(user User) error {
77 if !common.RedisEnabled {
78 return nil
79 }
80 return writeUserCache(user.ToBaseUser(), true)
81}
82
83// updateUserCache refreshes non-quota user cache fields.
84// Quota is maintained by atomic quota delta paths and must not be overwritten

Calls 2

writeUserCacheFunction · 0.85
ToBaseUserMethod · 0.80