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.
MODE_AND = 'AND'
Consts for master_files_mode
Details MODE_OR = 'OR'
Detailsarray $_masterFile_mtimes = 'null'Master file mtimes
Array of int
Detailsarray $_specificOptions = 'array'Available options
====> (string) master_file : - a complete path of the master file - deprecated (see master_files)
====> (array) master_files : - an array of complete path of master files - this option has to be set !
====> (string) master_files_mode : - Zend_Cache_Frontend_File::MODE_AND or Zend_Cache_Frontend_File::MODE_OR - if MODE_AND, then all master files have to be touched to get a cache invalidation - if MODE_OR (default), then a single touched master file is enough to get a cache invalidation
====> (boolean) ignore_missing_master_files - if set to true, missing master files are ignored silently - if set to false (default), an exception is thrown if there is a missing master file
Details__construct(
array $options
=
array
)
:
voidConstructor
Detailsload(
string $id, boolean $doNotTestCacheValidity
=
false, boolean $doNotUnserialize
=
false
)
:
mixed|falseTest if a cache is available for the given id and (if yes) return it (false else)
DetailssetMasterFile(
string $masterFile
)
:
Change the master_file option
To keep the compatibility
DetailssetMasterFiles(
$masterFiles
)
:
Change the master_file option
DetailssetOption(
string $name, mixed $value
)
:
voidPublic frontend to set an option
Just a wrapper to get a specific behaviour for master_file
Detailstest(
string $id
)
:
int|falseTest if a cache is available for the given id
Details