Class Zend_Cache_Backend

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

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


	
			
Direct descendents
Variable Summary
 array $_directives
 array $_options
Method Summary
 static string getTmpDir ()
 void __construct ([ $options = array()])
 int getLifetime (int $specificLifetime)
 void setDirectives (array $directives)
 void setOption (string $name, mixed $value)
 void _log (string $message, [ $priority = 4])
 void _loggerSanity ()
Variables
array $_directives = array(
'lifetime' => 3600,
'logging' => false,
'logger' => null
)
(line 43)

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

Redefined in descendants as:
array $_options = array() (line 54)

Available options

  • var: available options
  • access: protected

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

Return a system-wide tmp directory

  • return: System-wide tmp directory
static string getTmpDir ()
Constructor __construct (line 63)

Constructor

  • throws: Zend_Cache_Exception
  • access: public
void __construct ([ $options = array()])
  • array $options: Associative array of options

Redefined in descendants as:
getLifetime (line 122)

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 (int $specificLifetime)
  • int $specificLifetime
isAutomaticCleaningAvailable (line 138)

Return true if the automatic cleaning is available for the backend

DEPRECATED : use getCapabilities() instead

  • deprecated:
  • access: public
boolean isAutomaticCleaningAvailable ()

Redefined in descendants as:
setDirectives (line 77)

Set the frontend directives

  • throws: Zend_Cache_Exception
  • access: public
void setDirectives (array $directives)
  • array $directives: Assoc of directives

Redefined in descendants as:
setOption (line 102)

Set an option

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

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 180)

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 Fri, 08 Jan 2010 17:13:04 -0500 by phpDocumentor 1.4.3