PHP 클래스 Isswp101\Persimmon\Cache\RuntimeCache

파일 보기 프로젝트 열기: isswp101/elasticsearch-eloquent

공개 메소드들

메소드 설명
containsAttributes ( mixed $key, array $attributes = ['*'] ) : boolean Return true if cache has already given attributes.
forget ( mixed $key ) Remove an item from the cache by key.
get ( mixed $key ) : Model Return instance from cache.
getNotCachedAttributes ( mixed $key, array $attributes = ['*'] ) : array Return the difference between given attributes and attributes which are already cached.
has ( mixed $key ) : boolean Return true if cache contains this key.
keys ( ) : array Return all cache keys.
put ( mixed $key, Model $instance, array $attributes = ['*'] ) : Model Put instance to cache.

메소드 상세

containsAttributes() 공개 메소드

Return true if cache has already given attributes.
public containsAttributes ( mixed $key, array $attributes = ['*'] ) : boolean
$key mixed
$attributes array
리턴 boolean

forget() 공개 메소드

Remove an item from the cache by key.
public forget ( mixed $key )
$key mixed

get() 공개 메소드

Return instance from cache.
public get ( mixed $key ) : Model
$key mixed
리턴 Isswp101\Persimmon\Model

getNotCachedAttributes() 공개 메소드

Return the difference between given attributes and attributes which are already cached.
public getNotCachedAttributes ( mixed $key, array $attributes = ['*'] ) : array
$key mixed
$attributes array
리턴 array

has() 공개 메소드

Return true if cache contains this key.
public has ( mixed $key ) : boolean
$key mixed
리턴 boolean

keys() 공개 메소드

Return all cache keys.
public keys ( ) : array
리턴 array

put() 공개 메소드

Put instance to cache.
public put ( mixed $key, Model $instance, array $attributes = ['*'] ) : Model
$key mixed
$instance Isswp101\Persimmon\Model
$attributes array
리턴 Isswp101\Persimmon\Model