remove method

void remove(
  1. UserID userId
)

Removes a specific user from the cache.

Implementation

void remove(UserID userId) {
  if (_cache.containsKey(userId)) {
    _cache.remove(userId);
    _accessOrder.remove(userId);
    notifyListeners();
  }
}