Path

ez components / documentation / api reference / 2007.2 / cache


Cache: ezcCacheStorageMemcacheOptions

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

Class: ezcCacheStorageMemcacheOptions

Option class for defining a connection to a Memcache server. [source]

Parents

ezcBaseOptions
   |
   --ezcCacheStorageMemcacheOptions

Properties

bool read/write  $compressed
If on-the-fly compression is needed. Default is false. Requires the zlib PHP extension.
string read/write  $host
The name of the Memcache host to use, usually localhost.
bool read/write  $persistent
If a persistent connection to the Memcache host is needed. Default is false. A persistent connection stays open between requests.
int read/write  $port
The port on which to connect to host, usually 11211.

Member Variables

protected ezcCacheStorageOptions $storageOptions
Parent storage options.

Inherited Member Variables

From ezcBaseOptions:
protected  ezcBaseOptions::$properties

Method Summary

public ezcCacheStorageMemcacheOptions __construct( [$options = array()] )
Constructs an object with the specified values.

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.

Methods

__construct

ezcCacheStorageMemcacheOptions __construct( [ $options = array()] )
Constructs an object with the specified values.

Parameters

Name Type Description
$options array(string=>mixed)  

Throws

ClassDescription
ezcBasePropertyNotFoundException If $options contains a property not defined.
ezcBaseValueException If $options contains a property with a value not allowed.

Redefinition of

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

Last updated: Mon, 17 Dec 2007