PHP Класс eZ\Publish\Core\REST\Client\ObjectCache

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cachedObjects array Map of cached objects by their key.

Открытые методы

Метод Описание
clear ( string $key ) Clears the data stored in $key.
clearAll ( ) Clears all cached items.
restore ( string $key ) : eZ\Publish\API\Repository\Values\ValueObject | null Restores data stored under $key, returns null if $key is not found.
store ( string $key, eZ\Publish\API\Repository\Values\ValueObject $data ) Stores $data under $key.

Описание методов

clear() публичный метод

Clears the data stored in $key.
public clear ( string $key )
$key string

clearAll() публичный метод

Clears all cached items.
public clearAll ( )

restore() публичный метод

Restores data stored under $key, returns null if $key is not found.
public restore ( string $key ) : eZ\Publish\API\Repository\Values\ValueObject | null
$key string
Результат eZ\Publish\API\Repository\Values\ValueObject | null

store() публичный метод

Stores $data under $key.
public store ( string $key, eZ\Publish\API\Repository\Values\ValueObject $data )
$key string
$data eZ\Publish\API\Repository\Values\ValueObject

Описание свойств

$cachedObjects защищенное свойство

Map of cached objects by their key.
protected array $cachedObjects
Результат array