public function remove(string $key): void
    {
        if (isset($this->data[$key])) {
            unset($this->data[$key]);
            
            $this->size--;
        }
    }
public function remove(string $key): void
    {
        if (isset($this->data[$key])) {
            unset($this->data[$key]);
            
            $this->size--;
        }
    }
public function remove ( string $ key ) : void { if ( isset ( $ this -> data [ $ key ] ) ) { unset ( $ this -> data [ $ key ] ) ; $ this -> size -- ; } }
Remove an item from the cache if it exists.
Remove an item from the cache if it exists .