Cache: ezcCacheStorageApc
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcCacheStorageApc
|
This class is a common base class for all APC based storage classes. [
source]
The Cache package already contains these implementations of this class:
This storage acan also be used with
ezcCacheStack. However, APC version 3.0.16 or newer is required for that.
Parents
ezcCacheStorage
|
--ezcCacheStorageMemory
|
--ezcCacheStorageApc
Descendents
Constants
Inherited Member Variables
From
ezcCacheStorageMemory:
From
ezcCacheStorage:
Method Summary
|
public ezcCacheStorageApc |
__construct(
[$location = null], [$options = array()] )
Creates a new cache storage in the given location. |
|
protected abstract mixed |
fetchData(
$identifier )
Fetches data from the cache. |
|
protected abstract mixed |
prepareData(
$data )
Prepares the data for storing. |
|
public void |
setOptions(
$options, $options
)
Return the currently set options. |
Inherited Methods
From
ezcCacheStorageMemory :
From
ezcCacheStorage :
Methods
__construct
ezcCacheStorageApc __construct(
[string
$location = null], [
$options = array()] )
Creates a new cache storage in the given location.
Options can contain the 'ttl' (Time-To-Live). This is per default set to 1 day.
Parameters
| Name |
Type |
Description |
$location |
string |
Path to the cache location |
$options |
array(string=>string) |
Options for the cache |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If you tried to set a non-existent option value. |
Redefinition of
Redefined in descendants as
fetchData
mixed fetchData(
string
$identifier )
Fetches data from the cache.
Parameters
| Name |
Type |
Description |
$identifier |
string |
The APC identifier to fetch data from |
Redefined in descendants as
prepareData
mixed prepareData(
mixed
$data )
Prepares the data for storing.
Parameters
| Name |
Type |
Description |
$data |
mixed |
Simple type or array |
Throws
| Class | Description |
ezcCacheInvalidDataException |
If the data submitted can not be handled by this storage (object, resource). |
Redefined in descendants as
setOptions
Return the currently set options.
Return the currently set options. The options are returned on an array that has the same format as the one passed to
ezcCacheStorage::setOptions(). The possible options for a storage depend on its implementation.
Parameters
Redefinition of
Last updated: Mon, 11 May 2009