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

Function updateUserSettingCache

model/user_cache.go:213–218  ·  view source on GitHub ↗
(userId int, setting string)

Source from the content-addressed store, hash-verified

211}
212
213func updateUserSettingCache(userId int, setting string) error {
214 if !common.RedisEnabled {
215 return nil
216 }
217 return common.RedisHSetField(getUserCacheKey(userId), "Setting", setting)
218}

Callers 1

GetUserSettingFunction · 0.85

Calls 2

RedisHSetFieldFunction · 0.92
getUserCacheKeyFunction · 0.85

Tested by

no test coverage detected