(userId int, setting string)
| 250 | } |
| 251 | |
| 252 | func updateUserSettingCache(userId int, setting string) error { |
| 253 | if !common.RedisEnabled { |
| 254 | return nil |
| 255 | } |
| 256 | return common.RedisHSetField(getUserCacheKey(userId), "Setting", setting) |
| 257 | } |
| 258 | |
| 259 | // GetUserLanguage returns the user's language preference from cache |
| 260 | // Uses the existing GetUserCache mechanism for efficiency |
no test coverage detected