PHP Класс yii\caching\ZendDataCache

To use this application component, the Zend Data Cache PHP extension must be loaded. See Cache for common cache operations that ZendDataCache supports. For more details and usage information on Cache, see the guide article on caching.
С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends Cache
Показать файл Открыть проект

Защищенные методы

Метод Описание
addValue ( string $key, mixed $value, integer $duration ) : boolean Stores a value identified by a key into cache if the cache does not contain this key.
deleteValue ( string $key ) : boolean Deletes a value with the specified key from cache This is the implementation of the method declared in the parent class.
flushValues ( ) : boolean Deletes all values from cache.
getValue ( string $key ) : mixed | false Retrieves a value from cache with a specified key.
setValue ( string $key, mixed $value, integer $duration ) : boolean Stores a value identified by a key in cache.

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

addValue() защищенный Метод

This is the implementation of the method declared in the parent class.
protected addValue ( string $key, mixed $value, integer $duration ) : boolean
$key string the key identifying the value to be cached
$value mixed the value to be cached. Most often it's a string. If you have disabled [[serializer]], it could be something else.
$duration integer the number of seconds in which the cached value will expire. 0 means never expire.
Результат boolean true if the value is successfully stored into cache, false otherwise

deleteValue() защищенный Метод

Deletes a value with the specified key from cache This is the implementation of the method declared in the parent class.
protected deleteValue ( string $key ) : boolean
$key string the key of the value to be deleted
Результат boolean if no error happens during deletion

flushValues() защищенный Метод

This is the implementation of the method declared in the parent class.
protected flushValues ( ) : boolean
Результат boolean whether the flush operation was successful.

getValue() защищенный Метод

This is the implementation of the method declared in the parent class.
protected getValue ( string $key ) : mixed | false
$key string a unique key identifying the cached value
Результат mixed | false the value stored in cache, false if the value is not in the cache or expired.

setValue() защищенный Метод

This is the implementation of the method declared in the parent class.
protected setValue ( string $key, mixed $value, integer $duration ) : boolean
$key string the key identifying the value to be cached
$value mixed the value to be cached. Most often it's a string. If you have disabled [[serializer]], it could be something else.
$duration integer the number of seconds in which the cached value will expire. 0 means never expire.
Результат boolean true if the value is successfully stored into cache, false otherwise