Joomla! 1.5 API

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2011 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

Abstract Class JCacheStorage

Description

Abstract cache storage handler

  • abstract:
  • since: 1.5

Located in /joomla/cache/storage.php (line 26)

Class JObject   (Subpackage Base)

Abstract class JCacheStorage   (Subpackage Cache)
Direct descendents
Class Description
ClassJCacheStorageEaccelerator eAccelerator cache storage handler
ClassJCacheStorageApc APC cache storage handler
ClassJCacheStorageMemcache Memcache cache storage handler
ClassJCacheStorageXCache XCache cache storage handler
ClassJCacheStorageFile File cache storage handler
Method Summary
Static method static object A &getInstance ([string $handler = 'file'], [ $options = array()])
Static method static boolean test ()
Constructor JCacheStorage __construct ([array $options = array()])
Abstract method boolean clean (string $group, string $mode)
Abstract method boolean gc ()
Abstract method mixed get (string $id, string $group, boolean $checkTime)
Abstract method boolean remove (string $id, string $group)
Abstract method boolean store (string $id, string $group, string $data)
Variables

Inherited Variables

Inherited from JObject

Variable JObject::$_errors
Methods
Constructor __construct (line 34)

Constructor

  • access: protected
JCacheStorage __construct ([array $options = array()])
  • array $options: optional parameters

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

Redefined in descendants as:
clean (line 144)

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
  • abstract:
  • since: 1.5
  • access: public
boolean clean (string $group, string $mode)
  • string $group: The cache data group
  • string $mode: The mode for cleaning cache [group|notgroup]

Redefined in descendants as:
gc (line 156)

Garbage collect expired cache data

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

Redefined in descendants as:
get (line 95)

Get cached data by id and group

  • return: Boolean false on failure or a cached data string
  • abstract:
  • since: 1.5
  • access: public
mixed get (string $id, string $group, boolean $checkTime)
  • string $id: The cache data id
  • string $group: The cache data group
  • boolean $checkTime: True to verify cache time expiration threshold

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 61)

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

  • return: JCacheStorageHandler object
  • since: 1.5
object A &getInstance ([string $handler = 'file'], [ $options = array()])
  • string $handler: The cache storage handler to instantiate
  • $options
remove (line 126)

Remove a cached data entry by id and group

  • return: True on success, false otherwise
  • abstract:
  • since: 1.5
  • access: public
boolean remove (string $id, string $group)
  • string $id: The cache data id
  • string $group: The cache data group

Redefined in descendants as:
store (line 111)

Store the data to cache by id and group

  • return: True on success, false otherwise
  • abstract:
  • since: 1.5
  • access: public
boolean store (string $id, string $group, string $data)
  • string $id: The cache data id
  • string $group: The cache data group
  • string $data: The data to store in cache

Redefined in descendants as:
test (line 169)

Test to see if the storage handler is available.

  • return: True on success, false otherwise.
  • abstract:
  • access: public
boolean test ()

Redefined in descendants as:

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::getPublicProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::toString()
Support Joomla!