protected function reset(string $name, callable $callback = null)
    {
        if (!isset($this->cache[$name])) {
            return;
        }

        if ($callback !== null) {
            call_user_func($callback, $name, $this->cache[$name]);
        }

        unset($this->cache[$name]);
    }
protected function reset(string $name, callable $callback = null)
    {
        if (!isset($this->cache[$name])) {
            return;
        }

        if ($callback !== null) {
            call_user_func($callback, $name, $this->cache[$name]);
        }

        unset($this->cache[$name]);
    }
protected function reset ( string $ name , callable $ callback = null ) { if ( ! isset ( $ this -> cache [ $ name ] ) ) { return ; } if ( $ callback !== null ) { call_user_func ( $ callback , $ name , $ this -> cache [ $ name ] ) ; } unset ( $ this -> cache [ $ name ] ) ; }
Gracefully remove a value from the cache map

@param string $name The key of the value to remove
@param callable $callback An optional callback to handle the existing value
Gracefully remove a value from the cache map