public function forgetDriver($name = null)
    {
        $name = $name ?? $this->getDefaultDriver();

        foreach ((array) $name as $cacheName) {
            if (isset($this->stores[$cacheName])) {
                unset($this->stores[$cacheName]);
            }
        }

        return $this;
    }
public function forgetDriver($name = null)
    {
        $name = $name ?? $this->getDefaultDriver();

        foreach ((array) $name as $cacheName) {
            if (isset($this->stores[$cacheName])) {
                unset($this->stores[$cacheName]);
            }
        }

        return $this;
    }
public function forgetDriver ( $ name = null ) { $ name = $ name ?? $ this -> getDefaultDriver ( ) ; foreach ( ( array ) $ name as $ cacheName ) { if ( isset ( $ this -> stores [ $ cacheName ] ) ) { unset ( $ this -> stores [ $ cacheName ] ) ; } } return $ this ; }
Unset the given driver instances.

@param  array|string|null  $name
@return $this
Unset the given driver instances .