Previous Page
Constants

Solar_Cache_Adapter_Xcache
Properties

Next Page
Methods

Properties

Public

None.

Protected

$_Solar_Cache_Adapter

(array) User-provided configuration.

Inherited from Solar_Cache_Adapter.

Config keys are ...

life
(int) The lifetime of each cache entry in seconds.

$_Solar_Cache_Adapter_Xcache

(array) User-provided configuration.

Keys are ...

life
(int) The cache entry lifetime in seconds, default 0 (never expires).
user
(string) Admin user name for Xcache, as set in php.ini. This login and the corresponding password are required only for the deleteAll() method. Defaults to null.
pass
(string) Plaintext password that matches the MD5-encrypted password in php.ini. This password and the corresponding login are required only for the deleteAll() method. Defaults to null.

$_active

(bool) Whether or not the cache is active.

Inherited from Solar_Cache_Adapter.

$_config

(array) Collection point for configuration values.

Inherited from Solar_Base.

Note that you do not define config defaults in $_config directly.

<?php
// DO NOT DO THIS
protected $_config = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

Instead, define config defaults in a protected property named for the class, withan underscore prefix.

For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.

<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

$_life

(int) The lifetime of each cache entry in seconds.

Inherited from Solar_Cache_Adapter.

Private

None.