final class ResetQueryCache
    implements ResetTarget
    uses Snapshot
Public API: explicitly declared with @visibility public.

RESET QUERY CACHE: removes every query result from the query cache (MySQL 5.6 and 5.7; 8.0 removed the cache).

Mirrors the REFRESH_QUERY_CACHE flag of SQLCOM_RESET. Source: https://dev.mysql.com/doc/refman/5.7/en/query-cache-status-and-maintenance.html.

Resetting the query cachedoctest
(new \SqlSemantics\Platform\MySql\Semantics('mysql-5.7.44'))->analyze('reset query cache')->toString() // => 'RESET QUERY CACHE'

Methods§

public function deriveTarget(Derivation $derivation): void

Checks that the release has a query cache.

Parameters

$derivationDerivation
Calls 3
public function render(Output $out): void

Writes the item.

Parameters

$outOutput
Calls 1

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1