PHP Class eZ\Publish\Core\REST\Client\ObjectCache

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$cachedObjects array Map of cached objects by their key.

Public Methods

Method Description
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.

Method Details

clear() public method

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

clearAll() public method

Clears all cached items.
public clearAll ( )

restore() public method

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
return eZ\Publish\API\Repository\Values\ValueObject | null

store() public method

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

Property Details

$cachedObjects protected property

Map of cached objects by their key.
protected array $cachedObjects
return array