trait PdoTrait

Methods

createTable()

Creates the table to store cache items which can be called once for setup.

prune()

{@inheritdoc}

doFetch(array $ids)

{@inheritdoc}

doHave($id)

{@inheritdoc}

doClear($namespace)

{@inheritdoc}

doDelete(array $ids)

{@inheritdoc}

doSave(array $values, $lifetime)

{@inheritdoc}

Details

at line 87
createTable()

Creates the table to store cache items which can be called once for setup.

Cache ID are saved in a column of maximum length 255. Cache data is saved in a BLOB.

Exceptions

PDOException When the table already exists
DBALException When the table already exists
DomainException When an unsupported PDO driver is used

at line 150
prune()

{@inheritdoc}

at line 175
protected doFetch(array $ids)

{@inheritdoc}

Parameters

array $ids

at line 212
protected doHave($id)

{@inheritdoc}

Parameters

$id

at line 227
protected doClear($namespace)

{@inheritdoc}

Parameters

$namespace

at line 252
protected doDelete(array $ids)

{@inheritdoc}

Parameters

array $ids

at line 268
protected doSave(array $values, $lifetime)

{@inheritdoc}

Parameters

array $values
$lifetime