Class Zend_Cache_Backend

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

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


	
			
Direct descendents
Class Description
 class Zend_Cache_Backend_Sqlite
 class Zend_Cache_Backend_ZendPlatform Impementation of Zend Cache Backend using the Zend Platform (Output Content Caching)
 class Zend_Cache_Backend_Apc
 class Zend_Cache_Backend_Memcached
 class Zend_Cache_Backend_File
Variable Summary
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)
 void _log (string $message, [ $priority = 4])
 void _loggerSanity ()
Variables
array $_backwardCompatibilityArray = array() (line 67)

backward compatibility becase of ZF-879 and ZF-1172 (it will be removed in ZF 1.1)

  • access: protected

Redefined in descendants as:
array $_directives = array(
'lifetime' => 3600,
'logging' => false,
'logger' => null
)
(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 60)

Available options

  • var: available options
  • access: protected

Redefined in descendants as:
Methods
static getTmpDir (line 163)

Return a system-wide tmp directory

  • return: system-wide tmp directory
static string getTmpDir ()
Constructor __construct (line 78)

Constructor

  • access: public
Zend_Cache_Backend __construct ([array $options = array()])
  • array $options: associative array of options

Redefined in descendants as:
getLifetime (line 140)

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
isAutomaticCleaningAvailable (line 153)

Return true if the automatic cleaning is available for the backend

  • access: public
boolean isAutomaticCleaningAvailable ()

Redefined in descendants as:
setDirectives (line 91)

Set the frontend directives

  • access: public
void setDirectives (array $directives)
  • array $directives: assoc of directives
setOption (line 114)

Set an option

  • access: public
void setOption (string $name, mixed $value)
  • string $name
  • mixed $value
_log (line 222)

Log a message at the WARN (4) priority.

  • throws: Zend_Cache_Exception
  • access: protected
void _log (string $message, [ $priority = 4])
  • string $message
  • $priority
_loggerSanity (line 195)

Make sure if we enable logging that the Zend_Log class is available.

Create a default log object if none is set.

  • throws: Zend_Cache_Exception
  • access: protected
void _loggerSanity ()

Documentation generated on Wed, 28 Nov 2007 15:44:55 -0600 by phpDocumentor 1.4.0