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

Function updateUserGroupCache

model/user_cache.go:199–204  ·  view source on GitHub ↗
(userId int, group string)

Source from the content-addressed store, hash-verified

197}
198
199func updateUserGroupCache(userId int, group string) error {
200 if !common.RedisEnabled {
201 return nil
202 }
203 return common.RedisHSetField(getUserCacheKey(userId), "Group", group)
204}
205
206func updateUserNameCache(userId int, username string) error {
207 if !common.RedisEnabled {

Callers 1

GetUserGroupFunction · 0.85

Calls 2

RedisHSetFieldFunction · 0.92
getUserCacheKeyFunction · 0.85

Tested by

no test coverage detected