package Zend_Cache
subpackage Zend_Cache_Backend
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(array $options = array()

Parameters

$options

array

Associative array of options

Get the life time

getLifetime(integer $specificLifetime) : integer

if $specificLifetime is not false, the given specific life time is used else, the global lifetime is used

Parameters

$specificLifetime

integer

Returns

integerCache life time

Returns an option

getOption(string $name) : mixed

Parameters

$name

string

Optional, the options name to return

Exceptions

\Zend_Cache_Exceptions

Returns

mixed

Determine system TMP directory and detect if we have read access

getTmpDir() : string

inspired from Zend_File_Transfer_Adapter_Abstract

Exceptions

\Zend_Cache_Exception if unable to determine directory

Returns

string

Return true if the automatic cleaning is available for the backend

isAutomaticCleaningAvailable() : boolean

DEPRECATED : use getCapabilities() instead

deprecated

Returns

boolean

Set the frontend directives

setDirectives(array $directives) : void

Parameters

$directives

array

Assoc of directives

Exceptions

\Zend_Cache_Exception

Set an option

setOption(string $name, mixed $value) : void

Parameters

$name

string

$value

mixed

Exceptions

\Zend_Cache_Exception

Verify if the given temporary directory is readable and writable

_isGoodTmpDir(string $dir) : boolean

Parameters

$dir

string

temporary directory

Returns

booleantrue if the directory is ok

Log a message at the WARN (4) priority.

_log(string $message, integer $priority = 4) : void

Parameters

$message

string

$priority

integer

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

_loggerSanity() : void

Create a default log object if none is set.

Exceptions

\Zend_Cache_Exception

 Properties

 

Frontend or Core directives

$_directives : array

Default

array('lifetime' => 3600, 'logging' => false, 'logger' => null)

=====> (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
 

Available options

$_options : array

Default

array()