Cache/Backend.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Cache  
Subpackage
Zend_Cache_Backend  
Version
$Id$  

\Zend_Cache_Backend

Package: Zend_Cache\Zend_Cache_Backend
Children
\Zend_Cache_Backend_BlackHole
\Zend_Cache_Backend_WinCache
\Zend_Cache_Backend_Memcached
\Zend_Cache_Backend_ZendServer
\Zend_Cache_Backend_ZendPlatform
\Zend_Cache_Backend_Static
\Zend_Cache_Backend_File
\Zend_Cache_Backend_Test
\Zend_Cache_Backend_Libmemcached
\Zend_Cache_Backend_TwoLevels
\Zend_Cache_Backend_Xcache
\Zend_Cache_Backend_Apc
\Zend_Cache_Backend_Sqlite
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Methods

methodpublic__construct(array $options = array()) : void

Constructor

Parameters
NameTypeDescription
$optionsarray

Associative array of options

Throws
ExceptionDescription
\Zend_Cache_Exception
methodpublicgetLifetime(int $specificLifetime) : int

Get the life time

if $specificLifetime is not false, the given specific life time is used else, the global lifetime is used
Parameters
NameTypeDescription
$specificLifetimeint
Returns
TypeDescription
intCache life time
methodpublicgetOption(string $name) : mixed

Returns an option

Parameters
NameTypeDescription
$namestring

Optional, the options name to return

Returns
TypeDescription
mixed
Throws
ExceptionDescription
\Zend_Cache_Exceptions
methodpublicgetTmpDir() : string

Determine system TMP directory and detect if we have read access

inspired from Zend_File_Transfer_Adapter_Abstract
Returns
TypeDescription
string
Throws
ExceptionDescription
\Zend_Cache_Exceptionif unable to determine directory
methodpublicisAutomaticCleaningAvailable() : boolean

Return true if the automatic cleaning is available for the backend

DEPRECATED : use getCapabilities() instead
Returns
TypeDescription
boolean
Details
Deprecated
 
methodpublicsetDirectives(array $directives) : void

Set the frontend directives

Parameters
NameTypeDescription
$directivesarray

Assoc of directives

Throws
ExceptionDescription
\Zend_Cache_Exception
methodpublicsetOption(string $name, mixed $value) : void

Set an option

Parameters
NameTypeDescription
$namestring
$valuemixed
Throws
ExceptionDescription
\Zend_Cache_Exception
Documentation was generated by phpDocumentor 2.2.0 .