Storage engine for CakePHP caching
clear( boolean $check )
Delete all keys from the cache
$check
boolean
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
boolean
decrement( string $key , integer $offset 1 )
Decrement a number under the key and return decremented value
$key
$offset
optional 1 New
delete( string $key )
Delete a key from the cache
$key
boolean
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
array
increment( string $key , integer $offset 1 )
Increment a number under the key and return incremented value
$key
$offset
optional 1 New
init( array $settings array() )
Initialize the cache engine
Called automatically by the cache frontend
$settings
optional array() boolean
key( string $key )
Generates a safe key for use with cache engine storage engines.
$key
mixed
read( string $key )
Read a key from the cache
$key
mixed
write( string $key , mixed $value , integer $duration )
Write value for a key into cache
$key
$value
$duration
boolean
© 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.
http://api.cakephp.org/2.7/class-CacheEngine.html