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:
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. |
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
Last updated: Mon, 17 Dec 2007