class Slot

Базовый класс для всех будущих пользовательских классов-слотов.

Определяет, с каким backend-ом будет идти работа.

Methods

__construct($id, $lifetime)

Creates a new slot object.

mixed
load()

Loads a data of this slot. If nothing is found, returns false.

void
save(mixed $data)

Saves a data for this slot.

void
remove()

Removes a data of specified slot.

void
addTag(Tag $tag)

Associates a tag with current slot.

Details

at line 43
__construct($id, $lifetime)

Creates a new slot object.

Parameters

$id
$lifetime

at line 56
mixed load()

Loads a data of this slot. If nothing is found, returns false.

Return Value

mixed Complex data or false if no cache entry is found.

at line 69
void save(mixed $data)

Saves a data for this slot.

Parameters

mixed $data Data to be saved.

Return Value

void

at line 85
void remove()

Removes a data of specified slot.

Return Value

void

at line 97
void addTag(Tag $tag)

Associates a tag with current slot.

Parameters

Tag $tag Tag object to associate.

Return Value

void