updateUser method

void updateUser(
  1. UserID userId,
  2. User? user
)

Manually updates a user in the cache.

Useful when user data changes and you want to update the cache without waiting for the next resolution.

Implementation

void updateUser(UserID userId, User? user) {
  _cacheUser(userId, user);
}