Cache: ezcCacheStorageMemcache
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcCacheStorageMemcache
|
This class is a common base class for all Memcache based storage classes. [
source]
Parents
ezcCacheStorage
|
--ezcCacheStorageMemory
|
--ezcCacheStorageMemcache
Descendents
Constants
Inherited Member Variables
From
ezcCacheStorageMemory:
From
ezcCacheStorage:
Method Summary
|
public ezcCacheStorageMemcache |
__construct(
[$location = null], [$options = array()] )
Creates a new cache storage in the given location. |
|
protected abstract mixed |
fetchData(
$identifier )
Fetches the data from the cache. |
|
protected abstract mixed |
prepareData(
$data )
Prepare the data for storing. |
|
public void |
setOptions(
$options )
Set new options. |
Inherited Methods
From
ezcCacheStorageMemory :
From
ezcCacheStorage :
Methods
__construct
ezcCacheStorageMemcache __construct(
[string
$location = null], [
$options = array()] )
Creates a new cache storage in the given location.
Options can contain the 'ttl' ( Time-To-Life ). 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
fetchData
mixed fetchData(
string
$identifier )
Fetches the data from the cache.
Parameters
| Name |
Type |
Description |
$identifier |
string |
The memcache identifier to fetch data from |
Redefined in descendants as
prepareData
mixed prepareData(
mixed
$data )
Prepare 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
Set new options.
Overwrites the options with the given ones.
Parameters
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If you tried to set a non-existent option value. The accepted options depend on the ezcCacheStorage implementation and may vary. |
ezcBaseValueException |
If the value is not valid for the desired option. |
ezcBaseValueException |
If you submit neither an array nor an instance of ezcCacheStorageOptions. |
Redefinition of
Last updated: Mon, 11 May 2009