## Zend_Cache_Backend

Description

- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Cache/Backend.php (line 30)

Direct descendents

Class | Description
--- | ---
Zend_Cache_Backend_APC |
Zend_Cache_Backend_File |
Zend_Cache_Backend_Memcached |
Zend_Cache_Backend_Sqlite |
Zend_Cache_Backend_ZendPlatform | Impementation of Zend Cache Backend using the Zend Platform (Output Content Caching)

Variable Summary
array $_directives
array $_options
Method Summary
static string getTmpDir ()
Zend_Cache_Backend __construct ([array $options = array()])
int getLifeTime ( $specificLifeTime)
void setDirectives (array $directives)
void setOption (string $name, mixed $value)
Variables
array $_directives = array(
'lifeTime' => 3600,
'logging' => false
) (line 49)

Frontend or Core directives

=====> (int) lifeTime :

- Cache lifetime (in seconds)
- If null, the cache is valid forever

=====> (int) logging :

- if set to true, a logging is activated throw Zend_Log

- var: directives
- access: protected

array $_options = array() (line 59)

Available options

- var: available options
- access: protected

Redefined in descendants as:

- Zend_Cache_Backend_File::$_options : Available options
- Zend_Cache_Backend_Memcached::$_options : Available options
- Zend_Cache_Backend_Sqlite::$_options : Available options

Methods
static getTmpDir (line 138)

Return a system-wide tmp directory

- return: system-wide tmp directory

static string getTmpDir ()
Constructor __construct (line 71)

Constructor

- access: public

Zend_Cache_Backend __construct ([array $options = array()])

- array $options: associative array of options

Redefined in descendants as:

- Zend_Cache_Backend_APC::__construct() : Constructor
- Zend_Cache_Backend_File::__construct() : Constructor
- Zend_Cache_Backend_Memcached::__construct() : Constructor
- Zend_Cache_Backend_Sqlite::__construct() : Constructor
- Zend_Cache_Backend_ZendPlatform::__construct() : Constructor Validate that the Zend Platform is loaded and licensed

getLifeTime (line 125)

Get the life time

if $specificLifeTime is not false, the given specific life time is used else, the global lifeTime is used

- return: cache life time
- access: public

int getLifeTime ( $specificLifeTime)

- $specificLifeTime

setDirectives (line 84)

Set the frontend directives

- access: public

void setDirectives (array $directives)

- array $directives: assoc of directives

setOption (line 109)

Set an option

- access: public

void setOption (string $name, mixed $value)

- string $name
- mixed $value

Documentation generated on Wed, 21 Feb 2007 11:45:53 -0800 by phpDocumentor 1.3.1