del method

  1. @override
void del(
  1. dynamic key
)
override

Implementation

@override
void del(dynamic key) {
  _isInitialized();
  final target = _formatTarget(key);
  final exists = has(target);
  if (exists) {
    final expiration = _getExpiration(target);
    expirations.remove(target);
    events.emit(
        ExpirerEvents.deleted,
        ExpirerEvent(
          target: target,
          expiration: expiration,
        ));
  }
}