ez components / documentation / api reference / latest / cache

eZ Components latest

Cache: ezcCacheStorageOptions

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcCacheStorageOptions

Option class for the ezcCacheStorage class. [source]
Instances of this class store the options of ezcCacheStorage implementations.




string read/write  $extension
The (file) extension to use for the storage items.
int read/write  $ttl
The time to live of cache entries.

Inherited Member Variables

From ezcBaseOptions:
protected  ezcBaseOptions::$properties

Method Summary

public ezcCacheStorageOptions __construct( [$options = array()] )
Constructs a new options object.

Inherited Methods

From ezcBaseOptions :
public ezcBaseOptions ezcBaseOptions::__construct()
Construct a new options object.
public void ezcBaseOptions::merge()
Merge an array into the actual options object.
public bool ezcBaseOptions::offsetExists()
Returns if an option exists.
public mixed ezcBaseOptions::offsetGet()
Returns an option value.
public void ezcBaseOptions::offsetSet()
Set an option.
public void ezcBaseOptions::offsetUnset()
Unset an option.



ezcCacheStorageOptions __construct( [array(string=>mixed) $options = array()] )
Constructs a new options object.
It also sets the default values of the format property


Name Type Description
$options array(string=>mixed) The initial options to set.


ezcBaseValueException If the value for the property is incorrect
ezcBasePropertyNotFoundException If trying to assign a property which does not exist

Redefinition of

Method Description
ezcBaseOptions::__construct() Construct a new options object.

Last updated: Mon, 21 Dec 2009