Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

Abstract Class JCache

Description

Joomla! Cache base object

Located in /joomla/cache/cache.php (line 27)

Class JObject   (Subpackage Base)

Abstract class JCache   (Subpackage Cache)
Direct descendents
Class Description
ClassJCacheCallback Joomla! Cache callback type object
ClassJCachePage Joomla! Cache page type object
ClassJCacheOutput Joomla! Cache output type object
ClassJCacheView Joomla! Cache view type object
Method Summary
Static method static object A &getInstance ([string $type = 'output'], [ $options = array()])
Constructor JCache __construct (array $options)
Method boolean clean ([string $group = null], [string $mode = 'group'])
Method boolean gc ()
Abstract method mixed get (string $id, [string $group = null])
Abstract method boolean remove (string $id, [string $group = null])
Method void setCaching (boolean $enabled)
Method void setLifeTime (int $lt)
Method boolean store (mixed $data, string $id, [string $group = null])
Methods
Constructor __construct (line 49)

Constructor

  • access: protected
JCache __construct (array $options)
  • array $options: options

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.
clean (line 198)

Clean cache for a group given a mode.

group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group

  • return: True on success, false otherwise
  • since: 1.5
  • access: public
boolean clean ([string $group = null], [string $mode = 'group'])
  • string $group: The cache data group
  • string $mode: The mode for cleaning cache [group|notgroup]
gc (line 217)

Garbage collect expired cache data

  • return: True on success, false otherwise.
  • access: public
boolean gc ()
get (line 127)

Get cached data by id and group

  • return: Boolean false on failure or a cached data string
  • since: 1.5
  • access: public
  • abstract:
mixed get (string $id, [string $group = null])
  • string $id: The cache data id
  • string $group: The cache data group

Redefinition of:
JObject::get()
Returns a property of the object or the default value if the property is not set.

Redefined in descendants as:
getInstance (line 68)

Returns a reference to a cache adapter object, only creating it if it doesn't already exist.

  • return: JCache object
  • since: 1.5
object A &getInstance ([string $type = 'output'], [ $options = array()])
  • string $type: The cache object type to instantiate
  • $options
remove (line 173)

Remove a cached data entry by id and group

  • return: True on success, false otherwise
  • since: 1.5
  • access: public
  • abstract:
boolean remove (string $id, [string $group = null])
  • string $id: The cache data id
  • string $group: The cache data group
setCacheValidation (line 112)

Set cache validation

  • since: 1.5
  • access: public
void setCacheValidation ()
setCaching (line 87)

Set caching enabled state

  • since: 1.5
  • access: public
void setCaching (boolean $enabled)
  • boolean $enabled: True to enable caching
setLifeTime (line 100)

Set cache lifetime

  • since: 1.5
  • access: public
void setLifeTime (int $lt)
  • int $lt: Cache lifetime
store (line 150)

Store the cached data by id and group

  • return: True if cache stored
  • since: 1.5
  • access: public
boolean store (mixed $data, string $id, [string $group = null])
  • string $id: The cache data id
  • string $group: The cache data group
  • mixed $data: The data to store

Redefined in descendants as:
_getStorageHandler (line 227)
void &_getStorageHandler ()

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getPublicProperties()
 JObject::set()
 JObject::toString()

Documentation generated on Mon, 05 Mar 2007 20:53:41 +0000 by phpDocumentor 1.3.1