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

Function updateUserEmailCache

model/user_cache.go:238–243  ·  view source on GitHub ↗
(userId int, email string)

Source from the content-addressed store, hash-verified

236}
237
238func updateUserEmailCache(userId int, email string) error {
239 if !common.RedisEnabled {
240 return nil
241 }
242 return common.RedisHSetField(getUserCacheKey(userId), "Email", email)
243}
244
245func updateUserNameCache(userId int, username string) error {
246 if !common.RedisEnabled {

Callers 1

updateUserCacheFunction · 0.85

Calls 2

RedisHSetFieldFunction · 0.92
getUserCacheKeyFunction · 0.85

Tested by

no test coverage detected