Class JCacheHash

Description

Class to cache a hash (used for ACL caching)

Class Based Heavily on Hashed_Cache_Lite by: Mike Benoit <[email protected]> phpGACL - Generic Access Control List - Hashed Directory Caching.

  • since: 1.1

Located in /cache/adapters/hash.php (line 24)

Cache_Lite
   |
   --JCache
      |
      --JCacheHash
Method Summary
 boolean clean ([string $group = false])
 void setCaching (boolean $enable)
 void _construct (array &$options)
 void _create_dir_structure (string $dir)
 void _remove_dir_structure (mixed $dir, [mixed $remove_dir = false])
 void _setFileName (string $id, string $group)
Variables

Inherited Variables

Inherited from JCache

JCache::$_defaultGroup
JCache::$_validateCache
Methods
clean (line 142)

Clean the cache if no group is specified all cache files will be destroyed else only cache files of the specified group will be destroyed

  • return: true if no problem
  • access: public
boolean clean ([string $group = false])
  • string $group: name of the cache group
setCaching (line 42)

Enable/disbale caching

  • access: public
void setCaching (boolean $enable)
  • boolean $enable: If true enable caching.

Redefinition of:
JCache::setCaching()
Enable/disbale caching, if caching is enabled
_construct (line 32)

Constructor

  • access: protected
void _construct (array &$options)
  • array $options: options

Redefinition of:
JCache::_construct()
Constructor
_create_dir_structure (line 74)

Create full directory structure, Ripped straight from the Smarty Template engine. Version: 2.3.0 Copyright: 2001,2002 ispi of Lincoln, Inc.

  • access: private
void _create_dir_structure (string $dir)
  • string $dir: Full directory.
_remove_dir_structure (line 90)
void _remove_dir_structure (mixed $dir, [mixed $remove_dir = false])
_setFileName (line 53)

Make a file name (with path)

  • access: private
void _setFileName (string $id, string $group)
  • string $id: cache id
  • string $group: name of the group

Inherited Methods

Inherited From JCache

 JCache::JCache()
 JCache::cleanCache()
 JCache::generateId()
 JCache::getCache()
 JCache::getInstance()
 JCache::setCacheValidation()
 JCache::setCaching()
 JCache::_construct()

Documentation generated on Sat, 4 Feb 2006 14:23:43 +0100 by phpDocumentor 1.3.0RC4