ApcEngine Class Info:
- Class Declaration:
class ApcEngine extends CacheEngine
- File name:
- cake/libs/cache/apc.php
- Description:
APC storage engine for cache
- Class Inheritance
- Package
- cake
- Subpackage
- cake.cake.libs.cache
Properties:
-
settings int
Settings of current engine instance
clear
topDelete all keys from the cache
- Method defined in:
- cake/libs/cache/apc.php on line 120
- Return
boolean True if the cache was succesfully cleared, false otherwise
- Access
public
decrement
topDecrements the value of an integer cached key
- Parameters:
-
-
string $key required
Identifier for the data
-
integer $offset optional 1
How much to substract
-
- Method defined in:
- cake/libs/cache/apc.php on line 99
- Return
New decremented value, false otherwise
- Access
public
delete
topDelete a key from the cache
- Parameters:
-
-
string $key required
Identifier for the data
-
- Method defined in:
- cake/libs/cache/apc.php on line 110
- Return
boolean True if the value was succesfully deleted, false if it didn't exist or couldn't be removed
- Access
public
gc
topGarbage collection
Permanently remove all expired and deleted data
- Method defined in:
- cake/libs/cache.php on line 609
- Access
public
increment
topIncrements the value of an integer cached key
- Parameters:
-
-
string $key required
Identifier for the data
-
integer $offset optional 1
How much to increment
-
- Method defined in:
- cake/libs/cache/apc.php on line 86
- Return
New incremented value, false otherwise
- Access
public
init
topInitialize the Cache Engine
Called automatically by the cache frontend To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array());
- Parameters:
-
-
$settings optional array ( )
-
- Method defined in:
- cake/libs/cache/apc.php on line 41
- Return
boolean True if the engine has been successfully initialized, false if not
- See
CacheEngine::__defaults
- Access
public
key
topGenerates a safe key for use with cache engine storage engines.
- Parameters:
-
-
string $key required
the key passed over
-
- Method defined in:
- cake/libs/cache.php on line 695
- Return
mixed string $key or false
- Access
public
read
topRead a key from the cache
- Parameters:
-
-
string $key required
Identifier for the data
-
- Method defined in:
- cake/libs/cache/apc.php on line 68
- Return
mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it
- Access
public
settings
topCache Engine settings
- Method defined in:
- cake/libs/cache.php on line 684
- Return
array settings
- Access
public
write
topWrite data for key into cache
- Parameters:
-
-
string $key required
Identifier for the data
-
mixed $value required
Data to be cached
-
integer $duration required
How long to cache the data, in seconds
-
- Method defined in:
- cake/libs/cache/apc.php on line 55
- Return
boolean True if the data was succesfully cached, false on failure
- Access
public