Storage engine for CakePHP caching
$_groupPrefix
protected string
Contains the compiled string with all groups prefixes to be prepended to every key in this cache engine
$settings
public array
Clears all values belonging to a group. Is up to the implementing engine to decide whether actually delete the keys or just simulate it to achieve the same result.
Does whatever initialization for each group is required and returns the group value
for each of them, this is the token representing each group in the cache key
add( string $key , mixed $value , integer $duration )
Write value for a key into cache if it doesn't already exist
$key
$value
$duration
clear( boolean $check )
Delete all keys from the cache
$check
clearGroup( string $group )
Clears all values belonging to a group. Is up to the implementing engine to decide whether actually delete the keys or just simulate it to achieve the same result.
$group
decrement( string $key , integer $offset 1 )
Decrement a number under the key and return decremented value
$key
$offset
optional 1 delete( string $key )
Delete a key from the cache
$key
gc( integer $expires null )
Garbage collection
Permanently remove all expired and deleted data
$expires
optional null groups( )
Does whatever initialization for each group is required and returns the group value
for each of them, this is the token representing each group in the cache key
increment( string $key , integer $offset 1 )
Increment a number under the key and return incremented value
$key
$offset
optional 1 init( array $settings array() )
Initialize the cache engine
Called automatically by the cache frontend
$settings
optional array() key( string $key )
Generates a safe key for use with cache engine storage engines.
$key
read( string $key )
Read a key from the cache
$key
write( string $key , mixed $value , integer $duration )
Write value for a key into cache
$key
$value
$duration
protected string
Contains the compiled string with all groups prefixes to be prepended to every key in this cache engine
null
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.9/class-CacheEngine.html