Cache_Lite_File
This class extends Cache_Lite and offers a cache system driven by a master file
With this class, cache validity is only dependent of a given file. Cache files are valid only if they are older than the master file. It's a perfect way for caching templates results (if the template file is newer than the cache, cache must be rebuild...) or for config classes... There are some examples in the 'docs/examples' file Technical choices are described in the 'docs/technical' file
Located in /pear/cache/lite/File.php (line 24)
Cache_Lite Cache_Lite_File
Complete path of the file used for controlling the cache lifetime
Masterfile mtime
Inherited Variables
Inherited from Cache_Lite
Cache_Lite::$_automaticCleaningFactor
Cache_Lite::$_automaticSerialization
Cache_Lite::$_cacheDir
Cache_Lite::$_caching
Cache_Lite::$_errorHandlingAPIBreak
Cache_Lite::$_file
Cache_Lite::$_fileLocking
Cache_Lite::$_fileName
Cache_Lite::$_fileNameProtection
Cache_Lite::$_group
Cache_Lite::$_hashedDirectoryLevel
Cache_Lite::$_hashedDirectoryUmask
Cache_Lite::$_id
Cache_Lite::$_lifeTime
Cache_Lite::$_memoryCaching
Cache_Lite::$_memoryCachingArray
Cache_Lite::$_memoryCachingCounter
Cache_Lite::$_memoryCachingLimit
Cache_Lite::$_onlyMemoryCaching
Cache_Lite::$_pearErrorMode
Cache_Lite::$_readControl
Cache_Lite::$_readControlType
Cache_Lite::$_refreshTime
Cache_Lite::$_writeControl
Constructor
$options is an assoc. To have a look at availables options, see the constructor of the Cache_Lite class in 'Cache_Lite.php'
Comparing to Cache_Lite constructor, there is another option : $options = array( (...) see Cache_Lite constructor 'masterFile' => complete path of the file used for controlling the cache lifetime(string) );
- array $options: options
Test if a cache is available and (if yes) return it
- string $id: cache id
- string $group: name of the cache group
- Cache_Lite::get()
- Test if a cache is available and (if yes) return it
Inherited Methods
Inherited From Cache_Lite
Cache_Lite::Cache_Lite()
Cache_Lite::clean()
Cache_Lite::extendLife()
Cache_Lite::get()
Cache_Lite::getMemoryCachingState()
Cache_Lite::lastModified()
Cache_Lite::raiseError()
Cache_Lite::remove()
Cache_Lite::save()
Cache_Lite::saveMemoryCachingState()
Cache_Lite::setLifeTime()
Cache_Lite::setOption()
Cache_Lite::setToDebug()
Documentation generated on Mon, 05 Mar 2007 20:58:41 +0000 by phpDocumentor 1.3.1