Clear all metadata cache of the various cache drivers

@param array $opt

@option $flush If defined, cache entries will be flushed instead of deleted/invalidated
551041
public function ormClearCacheMetadata($opt = ['flush' => false])
    {
        $validOpts = ['flush'];
        $command = new Command\ClearCache\MetadataCommand;

        $this->runDoctrineCommand($command, $opt, $validOpts);
    }
180685
public function flush($max = 10, $options = [])
    {
        $defaults = [
            'selectTimeout'  => 1.0
        ];

        $options += $defaults;

        do {
            $this->select($options['selectTimeout']);
            $this->process($max);
        } while ($this->_running > 0);

        $results = $this->_results;
        $this->_results = [];
        return $results;
    }
830364
public function flushCache()
    {
        $adapter = $this->driver->getAdapter();

        if ($adapter instanceof CachedAdapter) {
            $adapter->getCache()->flush();
        }
    }
1000051
public function flush($dir = '')
    {
        $dir = $cache_dir = APP_PATH . '/' . Config::get('cache_dir');
        \ePHP\Misc\Dir::deleteDir($dir);
        mkdir($dir, 0777);
    }
563502
public function clearVolumes($shelf, $optParams = array())
  {
    $params = array('shelf' => $shelf);
    $params = array_merge($params, $optParams);
    return $this->call('clearVolumes', array($params));
  }
1107733
public function delete_data_from_cache($option = null)
    {
        $this->fields = null;

        $this->getDataRepository()->invalidate($this->getRecordReference()->getRecordId());

        return $this->getDatabox()->delete_data_from_cache($this->get_cache_key($option));
    }
1131159
public function clearCacheCommand($parameters)
    {
        if (in_array($parameters['cacheCmd'], ['all', 'system'])) {
            $files = $this->getFilesInPath(self::GENERATED_FILES_PATH . '*');

            foreach ($files as $file) {
                $this->clearFile($file);
            }
        }
    }
1033440
public function optionFlush($type = null)
    {
        if (in_array($type, ['modules', 'languages'])) {
            switch ($type) {
                case 'modules':
                    modules()->flushRegistry();
                    break;

                case 'languages':
                    language()->flushRegistry();
                    break;
            }

        } else {
            modules()->flushRegistry();
            language()->flushRegistry();
        }

        exit(EXIT_SUCCESS);
    }
251867
public function clear_cache( $mode = 'all' ) {
		$mode = $mode ? : 'all';
		$cleared = Command::clear_cache( $mode );
		if ( $cleared ) {
			\WP_CLI::success("Cleared {$mode} cached contents");
		} else {
			\WP_CLI::warning("Failed to clear {$mode} cached contents");
		}
	}
273873
public function out($str, $opt = array())
    {
        $data = array_merge($opt, ['text' => rtrim($str, "\n")]);
        //if($color)$data['style']='color: '.$color;
        $this->sseMessageJSON($data);
    }
114827
public static function clearCache()
    {
        $tempDirectory = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Core\ConfigFile::class)->getVar("sCompileDir");
        $mask = $tempDirectory . "/" . self::CACHE_FILE_PREFIX . ".*.txt";
        $files = glob($mask);
        if (is_array($files)) {
            foreach ($files as $file) {
                if (is_file($file)) {
                    @unlink($file);
                }
            }
        }
    }
586657
public function delete($media, $flush = true)
    {
        parent::delete($media, $flush);

        foreach ($this->filesystemManipulator->keys() as $key) {
            if (preg_match('#/'.$media->getReference().'$#', $key)) {
                $this->filesystemManipulator->delete($key);
            }
        }
    }
24888
public function flush(array $options = [])
    {
        $endpoint = new Flush();
        $endpoint->setParams($options);

        return $this->requestEndpoint($endpoint);
    }
3662
function clear( $network_level_or_blog_id = null, $flush = false ) {
            if ( ! $this->_is_multisite ||
                 false === $network_level_or_blog_id ||
                 is_null( $network_level_or_blog_id ) ||
                 is_numeric( $network_level_or_blog_id )
            ) {
                $site_options = $this->get_site_options( $network_level_or_blog_id );
                $site_options->clear( $flush );
            }

            if ( $this->_is_multisite &&
                 ( true === $network_level_or_blog_id || is_null( $network_level_or_blog_id ) )
            ) {
                $this->_network_options->clear( $flush );
            }
        }
1110044
public function clearCache($methods = null)
    {
        if ($methods === null || $methods === 'all') {
            $this->cache = [];
        } else {
            foreach ((array) $methods as $method) {
                $this->cache[$method] = [];
            }
        }

        return $this;
    }
295478
protected function clearCaches()
    {
        $this->callSilent('clear-compiled');
        $this->callSilent('cache:clear');
        $this->callSilent('route:clear');
        $this->callSilent('config:clear');
        $this->callSilent('view:clear');
        Cache::flush();
    }
131433
def clear
      flush
      with_tmpfile do |path, file|
        file.write(@format.header)
        file.close
        # Clear replaces the database file like a compactification does
        with_flock(File::LOCK_EX) do
          File.rename(path, @file)
        end
      end
      open
    end