MCPcopy
hub / github.com/QuantumNous/new-api / getUserSettingCache

Function getUserSettingCache

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

Source from the content-addressed store, hash-verified

177}
178
179func getUserSettingCache(userId int) (dto.UserSetting, error) {
180 cache, err := GetUserCache(userId)
181 if err != nil {
182 return dto.UserSetting{}, err
183 }
184 return cache.GetSetting(), nil
185}
186
187// New functions for individual field updates
188func 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