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

Function updateUserNameCache

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

Source from the content-addressed store, hash-verified

204}
205
206func updateUserNameCache(userId int, username string) error {
207 if !common.RedisEnabled {
208 return nil
209 }
210 return common.RedisHSetField(getUserCacheKey(userId), "Username", username)
211}
212
213func updateUserSettingCache(userId int, setting string) error {
214 if !common.RedisEnabled {

Callers 1

GetUsernameByIdFunction · 0.85

Calls 2

RedisHSetFieldFunction · 0.92
getUserCacheKeyFunction · 0.85

Tested by

no test coverage detected