xPDOCache
__construct
( &$xpdo, [ $options = array()])
Redefined in descendants as:
Adds a value to the cache.
boolean
add
(string $key, string $var, [integer $expire = 0], [array $options = array()])
-
string
$key: A unique key identifying the item being set.
-
string
$var: A reference to the PHP variable representing the item.
-
integer
$expire: The amount of seconds for the variable to expire in.
-
array
$options: Additional options for the operation.
Redefined in descendants as:
Deletes a value from the cache.
boolean
delete
(string $key, [array $options = array()])
-
string
$key: A unique key identifying the item being deleted.
-
array
$options: Additional options for the operation.
Redefined in descendants as:
Flush all values from the cache.
boolean
flush
([array $options = array()])
-
array
$options: Additional options for the operation.
Redefined in descendants as:
Gets a value from the cache.
mixed
get
(string $key, [array $options = array()])
-
string
$key: A unique key identifying the item to fetch.
-
array
$options: Additional options for the operation.
Redefined in descendants as:
Get the actual cache key the implementation will use.
string
getCacheKey
(string $key, [array $options = array()])
-
string
$key: The identifier the application uses.
-
array
$options: Additional options for the operation.
Redefined in descendants as:
Get an option from supplied options, the cache options, or the xpdo config.
mixed
getOption
(string $key, [array $options = array()], [mixed $default = null])
-
string
$key: Unique identifier for the option.
-
array
$options: A set of explicit options to override those from xPDO or the xPDOCache implementation.
-
mixed
$default: An optional default value to return if no value is found.
Indicates if this xPDOCache instance has been properly initialized.
boolean
isInitialized
()
Replaces a value in the cache.
boolean
replace
(string $key, string $var, [integer $expire = 0], [array $options = array()])
-
string
$key: A unique key identifying the item being set.
-
string
$var: A reference to the PHP variable representing the item.
-
integer
$expire: The amount of seconds for the variable to expire in.
-
array
$options: Additional options for the operation.
Redefined in descendants as:
Sets a value in the cache.
boolean
set
(string $key, string $var, [integer $expire = 0], [array $options = array()])
-
string
$key: A unique key identifying the item being set.
-
string
$var: A reference to the PHP variable representing the item.
-
integer
$expire: The amount of seconds for the variable to expire in.
-
array
$options: Additional options for the operation.
Redefined in descendants as: