(user User)
| 74 | } |
| 75 | |
| 76 | func populateUserCache(user User) error { |
| 77 | if !common.RedisEnabled { |
| 78 | return nil |
| 79 | } |
| 80 | return writeUserCache(user.ToBaseUser(), true) |
| 81 | } |
| 82 | |
| 83 | // updateUserCache refreshes non-quota user cache fields. |
| 84 | // Quota is maintained by atomic quota delta paths and must not be overwritten |