PHP 인터페이스 Bravo3\Orm\Services\Cache\EntityCachingInterface

파일 보기 프로젝트 열기: bravo3/orm 0 사용 예제들

공개 메소드들

메소드 설명
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