class ColumnAccessCache

Properties

protected Selection $selection
protected Cache $cache
protected string $generalCacheKey
protected string $specificCacheKey
protected array $accessedColumns
protected array $previousAccessedColumns
protected Selection $observeCache

Methods

__construct(Selection $selection, IStorage $cacheStorage = null)

No description

IStorage|null
getStorage()

No description

string
getGeneralCacheKey()

Returns general cache key independent on query parameters or sql limit Used e.g. for previously accessed columns caching

void
setGeneralCacheKey(string|null $key)

No description

string
getSpecificCacheKey()

Returns object specific cache key dependent on query parameters Used e.g. for reference memory caching

void
setSpecificCacheKey(string|null $key)

No description

array
getAccessedColumns()

No description

void
setAccessedColumns(array $accessedColumns)

No description

void
setAccessedColumn(string $key, bool $value)

No description

array
getPreviousAccessedColumns()

Loads cache of previous accessed columns and returns it.

void
setPreviousAccessedColumns(array $previousAccessedColumns)

No description

void
clearPreviousAccessedColumns()

No description

void
saveState()

No description

string
loadFromRefCache($referencing)

No description

void
setObserveCache(Selection $observeCache)

No description

void
setSelection(Selection $selection)

No description

Details

at line 40
__construct(Selection $selection, IStorage $cacheStorage = null)

Parameters

Selection $selection
IStorage $cacheStorage

at line 47
IStorage|null getStorage()

Return Value

IStorage|null

at line 57
string getGeneralCacheKey()

Returns general cache key independent on query parameters or sql limit Used e.g. for previously accessed columns caching

Return Value

string

at line 74
void setGeneralCacheKey(string|null $key)

Parameters

string|null $key

Return Value

void

at line 84
string getSpecificCacheKey()

Returns object specific cache key dependent on query parameters Used e.g. for reference memory caching

Return Value

string

at line 94
void setSpecificCacheKey(string|null $key)

Parameters

string|null $key

Return Value

void

at line 100
array getAccessedColumns()

Return Value

array

at line 106
void setAccessedColumns(array $accessedColumns)

Parameters

array $accessedColumns

Return Value

void

at line 114
void setAccessedColumn(string $key, bool $value)

Parameters

string $key
bool $value

Return Value

void

at line 125
array getPreviousAccessedColumns()

Loads cache of previous accessed columns and returns it.

Return Value

array

at line 135
void setPreviousAccessedColumns(array $previousAccessedColumns)

Parameters

array $previousAccessedColumns

Return Value

void

at line 141
void clearPreviousAccessedColumns()

Return Value

void

at line 147
void saveState()

Return Value

void

at line 165
string loadFromRefCache($referencing)

Parameters

$referencing

Return Value

string

at line 180
void setObserveCache(Selection $observeCache)

Parameters

Selection $observeCache

Return Value

void

at line 189
void setSelection(Selection $selection)

Parameters

Selection $selection

Return Value

void