Index Documentation

DbStatementCache
in package

Container to avoid having many prepared instances of the same query.

Table of Contents

Methods

__construct()  : mixed
clear()  : void
Closes all statement instances and resets the cache.
get()  : DbStatement
Gets a cached or creates a new DbStatement instance.
remove()  : void
Removes a cached statement from the cache.

Methods

clear()

Closes all statement instances and resets the cache.

public clear() : void

get()

Gets a cached or creates a new DbStatement instance.

public get(string $query) : DbStatement
Parameters
$query : string

SQL query.

Return values
DbStatement

Statement representing the query.

remove()

Removes a cached statement from the cache.

public remove(string $query) : void
Parameters
$query : string

SQL query of the statement to remove from the cache.


        
On this page

Search results