Class Zend_Cache_Backend_ZendPlatform

Description

Implements interfaces:

Impementation of Zend Cache Backend using the Zend Platform (Output Content Caching)

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

Located in /Zend/Cache/Backend/ZendPlatform.php (line 37)


	
			
Class Constant Summary
 TAGS_PREFIX = "internal_ZPtag:"
Method Summary
 Zend_Cache_Backend_ZendPlatform __construct ([array $options = array()])
 boolean clean ([string $mode = Zend_Cache::CLEANING_MODE_ALL], [tags $tags = array()])
 string load (string $id, [boolean $doNotTestCacheValidity = false])
 boolean remove (string $id)
 boolean save (string $data, string $id, [array $tags = array()])
 void setDirectives (array $directives)
 void setOption (string $name, mixed $value)
 mixed test (string $id)
Methods
Constructor __construct (line 74)

Constructor Validate that the Zend Platform is loaded and licensed

  • access: public
Zend_Cache_Backend_ZendPlatform __construct ([array $options = array()])
  • array $options: associative array of options
clean (line 229)

Clean some cache records

Available modes are : Zend_Cache::CLEANING_MODE_ALL (default) => remove all cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_OLD => remove too old cache entries ($tags is not used) This mode is not supported in this backend Zend_Cache::CLEANING_MODE_MATCHING_TAG => remove cache entries matching all given tags ($tags can be an array of strings or a single string) This mode is not supported in this backend Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG => remove cache entries not matching one of the given tags ($tags can be an array of strings or a single string) This mode is not supported in this backend

  • return: true if no problem
  • access: public
boolean clean ([string $mode = Zend_Cache::CLEANING_MODE_ALL], [tags $tags = array()])
  • string $mode: clean mode
  • tags $tags: array $tags array of tags

Implementation of:
Zend_Cache_Backend_Interface::clean()
Clean some cache records
load (line 141)

Test if a cache is available for the given id and (if yes) return it (false else)

  • return: cached data (or false)
  • access: public
string load (string $id, [boolean $doNotTestCacheValidity = false])
  • string $id: cache id
  • boolean $doNotTestCacheValidity: if set to true, the cache validity won't be tested

Implementation of:
Zend_Cache_Backend_Interface::load()
Test if a cache is available for the given id and (if yes) return it (false else)
remove (line 205)

Remove a cache record

  • return: true if no problem
  • access: public
boolean remove (string $id)
  • string $id: cache id

Implementation of:
Zend_Cache_Backend_Interface::remove()
Remove a cache record
save (line 181)

Save some string datas into a cache record

Note : $data is always "string" (serialization is done by the core not by the backend)

  • return: true if no problem
  • access: public
boolean save (string $data, string $id, [array $tags = array()])
  • string $data: data to cache
  • string $id: cache id
  • array $tags: array of strings, the cache record will be tagged by each string entry * This option is not supported in this backend

Implementation of:
Zend_Cache_Backend_Interface::save()
Save some string datas into a cache record
setDirectives (line 105)

Set the frontend directives

  • access: public
void setDirectives (array $directives)
  • array $directives: assoc of directives

Implementation of:
Zend_Cache_Backend_Interface::setDirectives()
Set the frontend directives
setOption (line 125)

Set an option

  • access: public
void setOption (string $name, mixed $value)
  • string $name
  • mixed $value
test (line 159)

Test if a cache is available or not (for the given id)

  • return: false (a cache is not available) or "last modified" timestamp (int) of the available cache record
  • access: public
mixed test (string $id)
  • string $id: cache id

Implementation of:
Zend_Cache_Backend_Interface::test()
Test if a cache is available or not (for the given id)
Class Constants
TAGS_PREFIX = "internal_ZPtag:" (line 62)

Documentation generated on Thu, 18 Jan 2007 10:00:17 -0800 by phpDocumentor 1.3.1