PHP Класс Isswp101\Persimmon\Cache\RuntimeCache

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

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

Метод Описание
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