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

Function getUserSettingCache

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

Source from the content-addressed store, hash-verified

189}
190
191func getUserSettingCache(userId int) (dto.UserSetting, error) {
192 cache, err := GetUserCache(userId)
193 if err != nil {
194 return dto.UserSetting{}, err
195 }
196 return cache.GetSetting(), nil
197}
198
199// New functions for individual field updates
200func updateUserStatusCache(userId int, status bool) error {

Callers 1

GetUserSettingFunction · 0.85

Calls 2

GetUserCacheFunction · 0.85
GetSettingMethod · 0.45

Tested by

no test coverage detected