remove method
Removes a specific user from the cache.
Implementation
void remove(UserID userId) {
if (_cache.containsKey(userId)) {
_cache.remove(userId);
_accessOrder.remove(userId);
notifyListeners();
}
}
Removes a specific user from the cache.
void remove(UserID userId) {
if (_cache.containsKey(userId)) {
_cache.remove(userId);
_accessOrder.remove(userId);
notifyListeners();
}
}