invalidateCache method

Future<void> invalidateCache(
  1. Session session
)

Invalidates the local cache for the user, and forces next lookup to get a fresh copy from the database.

Implementation

Future<void> invalidateCache(Session session) async {
  if (id == null) return;

  await Users.invalidateCacheForUser(session, id!);
}