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

Function updateUserNameCache

model/user_cache.go:245–250  ·  view source on GitHub ↗
(userId int, username string)

Source from the content-addressed store, hash-verified

243}
244
245func updateUserNameCache(userId int, username string) error {
246 if !common.RedisEnabled {
247 return nil
248 }
249 return common.RedisHSetField(getUserCacheKey(userId), "Username", username)
250}
251
252func updateUserSettingCache(userId int, setting string) error {
253 if !common.RedisEnabled {

Callers 2

updateUserCacheFunction · 0.85
GetUsernameByIdFunction · 0.85

Calls 2

RedisHSetFieldFunction · 0.92
getUserCacheKeyFunction · 0.85

Tested by

no test coverage detected