PHP Интерфейс Bravo3\Orm\Services\Cache\EntityCachingInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
exists ( string $class_name, string $id ) : boolean Check if an entity exists in cache
purge ( string $class_name, string $id ) : void Purge an entity from cache
retrieve ( string $class_name, string $id ) : object Retrieve an entity from the cache
store ( string $class_name, string $id, object $entity ) : void Store an entity in cache

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

exists() публичный Метод

Check if an entity exists in cache
public exists ( string $class_name, string $id ) : boolean
$class_name string
$id string
Результат boolean

purge() публичный Метод

If the entity does not exist, nothing will happen.
public purge ( string $class_name, string $id ) : void
$class_name string
$id string
Результат void

retrieve() публичный Метод

If an entity does not exist, a NotFoundException will be thrown.
public retrieve ( string $class_name, string $id ) : object
$class_name string
$id string
Результат object

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

Store an entity in cache
public store ( string $class_name, string $id, object $entity ) : void
$class_name string
$id string
$entity object
Результат void