class Cache (View source)

Handles caching results

Methods

void
cacheTableData(string $database, array $tables)

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

void
cacheTableValue(string $db, string $table, string $key, string|int|null $value)

Set an item in the cache

array|string|int|null
getCachedTableContent(string $db, string $table, string|null $key = null)

Get a cached value from table cache.

void
clearTableCache()

No description

Details

void cacheTableData(string $database, array $tables)

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

Parameters

string $database
array $tables

information for tables of some databases

Return Value

void

void cacheTableValue(string $db, string $table, string $key, string|int|null $value)

Set an item in the cache

Parameters

string $db
string $table
string $key
string|int|null $value

Return Value

void

array|string|int|null getCachedTableContent(string $db, string $table, string|null $key = null)

Get a cached value from table cache.

Parameters

string $db
string $table
string|null $key

Return Value

array|string|int|null

void clearTableCache()

No description

Return Value

void