(userId int, setting string)
| 222 | } |
| 223 | |
| 224 | func updateUserSettingCache(userId int, setting string) error { |
| 225 | if !common.RedisEnabled { |
| 226 | return nil |
| 227 | } |
| 228 | return common.RedisHSetField(getUserCacheKey(userId), "Setting", setting) |
| 229 | } |
| 230 | |
| 231 | // GetUserLanguage returns the user's language preference from cache |
| 232 | // Uses the existing GetUserCache mechanism for efficiency |
no test coverage detected