src/Memory.php
public function forget($args = [])
    {
        if (!empty($args)) {
            if (is_array($args)) {
                $args = implode('_', $args);
            }
            if (empty($this->forgetful)) {
                $this->forgetful = get_class_methods($this);
            }

            foreach ($this->forgetful as $method) {
                $cacheKey = str_replace('\\', '_', get_class($this).'_'.$method.'_');
                $this->forgetByKey($cacheKey);
                $cacheKey = str_replace('\\', '_', get_class($this).'_'.$method.'_'.$args);
                $this->forgetByKey($cacheKey);
            }
        } else {
            $key = $this->getRememberKey();
            $this->forgetByKey($key);
        }

        return $this;
    }
public function forget($args = [])
    {
        if (!empty($args)) {
            if (is_array($args)) {
                $args = implode('_', $args);
            }
            if (empty($this->forgetful)) {
                $this->forgetful = get_class_methods($this);
            }

            foreach ($this->forgetful as $method) {
                $cacheKey = str_replace('\\', '_', get_class($this).'_'.$method.'_');
                $this->forgetByKey($cacheKey);
                $cacheKey = str_replace('\\', '_', get_class($this).'_'.$method.'_'.$args);
                $this->forgetByKey($cacheKey);
            }
        } else {
            $key = $this->getRememberKey();
            $this->forgetByKey($key);
        }

        return $this;
    }
public function forget ( $ args = [ ] ) { if ( ! empty ( $ args ) ) { if ( is_array ( $ args ) ) { $ args = implode ( '_' , $ args ) ; } if ( empty ( $ this -> forgetful ) ) { $ this -> forgetful = get_class_methods ( $ this ) ; } foreach ( $ this -> forgetful as $ method ) { $ cacheKey = str_replace ( '\\' , '_' , get_class ( $ this ) . '_' . $ method . '_' ) ; $ this -> forgetByKey ( $ cacheKey ) ; $ cacheKey = str_replace ( '\\' , '_' , get_class ( $ this ) . '_' . $ method . '_' . $ args ) ; $ this -> forgetByKey ( $ cacheKey ) ; } } else { $ key = $ this -> getRememberKey ( ) ; $ this -> forgetByKey ( $ key ) ; } return $ this ; }
Forget the cached value.

@param array $args

@return mixed
Forget the cached value .