src/EventCacheTrait.php
protected function _removeCachedEvent($event)
    {
        $name = ($event instanceof EventInterface)
            ? $event->getName()
            : $event;

        unset($this->eventCache[$name]);

        return $this;
    }
protected function _removeCachedEvent($event)
    {
        $name = ($event instanceof EventInterface)
            ? $event->getName()
            : $event;

        unset($this->eventCache[$name]);

        return $this;
    }
Removes a cached event instance.

@since [*next-version*]

@param string|Stringable|EventInterface $event The name of the event, or the event instance.

@return $this This instance.