PHP Class yii\caching\ArrayCache

See Cache for common cache operations that ArrayCache supports. Unlike the Cache, ArrayCache allows the expire parameter of [[set]], [[add]], [[multiSet]] and [[multiAdd]] to be a floating point number, so you may specify the time in milliseconds (e.g. 0.1 will be 100 milliseconds). For more details and usage information on Cache, see the guide article on caching.
Since: 2.0
Author: Carsten Brandt ([email protected])
Inheritance: extends Cache
Show file Open project: yiisoft/yii2 Class Usage Examples

Public Methods

Method Description
exists ( $key )

Protected Methods

Method Description
addValue ( $key, $value, $duration )
deleteValue ( $key )
flushValues ( )
getValue ( $key )
setValue ( $key, $value, $duration )

Method Details

addValue() protected method

protected addValue ( $key, $value, $duration )

deleteValue() protected method

protected deleteValue ( $key )

exists() public method

public exists ( $key )

flushValues() protected method

protected flushValues ( )

getValue() protected method

protected getValue ( $key )

setValue() protected method

protected setValue ( $key, $value, $duration )