PHP Class Doctrine\Common\Cache\SQLite3Cache

Since: 1.4
Author: Jake Bell ([email protected])
Inheritance: extends CacheProvider
Datei anzeigen Open project: doctrine/cache

Public Methods

Method Description
__construct ( SQLite3 $sqlite, string $table ) Constructor.

Protected Methods

Method Description
doContains ( $id )
doDelete ( $id )
doFetch ( $id )
doFlush ( )
doGetStats ( )
doSave ( $id, $data, $lifeTime )

Private Methods

Method Description
findById ( mixed $id, boolean $includeData = true ) : array | null Find a single row by ID.
getFields ( ) : array Gets an array of the fields in our table.
isExpired ( array $item ) : boolean Check if the item is expired.

Method Details

__construct() public method

Calling the constructor will ensure that the database file and table exist and will create both if they don't.
public __construct ( SQLite3 $sqlite, string $table )
$sqlite SQLite3
$table string

doContains() protected method

protected doContains ( $id )

doDelete() protected method

protected doDelete ( $id )

doFetch() protected method

protected doFetch ( $id )

doFlush() protected method

protected doFlush ( )

doGetStats() protected method

protected doGetStats ( )

doSave() protected method

protected doSave ( $id, $data, $lifeTime )