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 JCacheStorage

Description

Abstract cache storage handler

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

Class JObject   (Subpackage Base)

Abstract class JCacheStorage   (Subpackage Cache)
Direct descendents
Class Description
ClassJCacheStorageApc APC cache storage handler
ClassJCacheStorageEaccelerator eAccelerator 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)
Methods
Constructor __construct (line 35)

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

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
  • abstract:
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 153)

Garbage collect expired cache data

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

Redefined in descendants as:
get (line 92)

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, 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 59)

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

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)
  • string $id: The cache data id
  • string $group: The cache data group

Redefined in descendants as:
store (line 108)

Store the data to cache by id and group

  • return: True on success, false otherwise
  • since: 1.5
  • access: public
  • abstract:
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 166)

Test to see if the storage handler is available.

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

Redefined in descendants as:

Inherited Methods

Inherited From JObject

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

Documentation generated on Mon, 05 Mar 2007 21:26:55 +0000 by phpDocumentor 1.3.1