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

Function updateUserQuotaCache

model/user_cache.go:192–197  ·  view source on GitHub ↗
(userId int, quota int)

Source from the content-addressed store, hash-verified

190}
191
192func updateUserQuotaCache(userId int, quota int) error {
193 if !common.RedisEnabled {
194 return nil
195 }
196 return common.RedisHSetField(getUserCacheKey(userId), "Quota", fmt.Sprintf("%d", quota))
197}
198
199func updateUserGroupCache(userId int, group string) error {
200 if !common.RedisEnabled {

Callers 1

GetUserQuotaFunction · 0.85

Calls 2

RedisHSetFieldFunction · 0.92
getUserCacheKeyFunction · 0.85

Tested by

no test coverage detected