class Cache (View source)

Handles caching results

Methods

void
cacheTableData(array $tables, string|bool $table)

Caches table data so Table does not require to issue SHOW TABLE STATUS again

void
cacheTableContent(array|null $contentPath, mixed $value)

Set an item in table cache using dot notation.

mixed
getCachedTableContent(array $contentPath, mixed $default = null)

Get a cached value from table cache.

array
getCache()

No description

void
clearTableCache()

No description

Details

void cacheTableData(array $tables, string|bool $table)

Caches table data so Table does not require to issue SHOW TABLE STATUS again

Parameters

array $tables

information for tables of some databases

string|bool $table

table name

Return Value

void

void cacheTableContent(array|null $contentPath, mixed $value)

Set an item in table cache using dot notation.

Parameters

array|null $contentPath

Array with the target path

mixed $value

Target value

Return Value

void

mixed getCachedTableContent(array $contentPath, mixed $default = null)

Get a cached value from table cache.

Parameters

array $contentPath

Array of the name of the target value

mixed $default

Return value on cache miss

Return Value

mixed

cached value or default

array getCache()

No description

Return Value

array

void clearTableCache()

No description

Return Value

void