Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitCacheRegistry

Core::arbitCacheRegistry

Class arbitCacheRegistry

Arbit simple cache registry Aggregates project dependant caches.

Arbit simple cache registry Aggregates project dependant caches. The default cache is the of the project currently selected by the request. Other caches can be explicitely requested, if necessary.

Author(s):
Version:   $Revision: 1236 $
License:   GPL

Member Variables

protected static array $caches
Array of contained caches

Array of contained caches

protected static string $defaultCache
Currently selected default cache

Currently selected default cache

Method Summary

public static arbitCache getCache( [ $name = null] )
Get cache Get a cache object. returned.
public static void setCache( $name , [ $cache = null] )
Set cache Initialize a cache entry with the given name. given the default file based cache implementation will be chosen.
public static void setDefaultCache( $name )
Set default cache Set the name of the current default cache.

Methods

getCache

static arbitCache getCache( [string $name = null] )

Get cache Get a cache object. returned.

Get cache Get a cache object. If no name is given the current default cache is returned.

Parameters:
Name Type Description
$name string

setCache

static void setCache( string $name , [arbitCache $cache = null] )

Set cache Initialize a cache entry with the given name. given the default file based cache implementation will be chosen.

Set cache Initialize a cache entry with the given name. If no cache object is given the default file based cache implementation will be chosen.

Parameters:
Name Type Description
$name string
$cache arbitCache

setDefaultCache

static void setDefaultCache( string $name )

Set default cache Set the name of the current default cache.

Set default cache Set the name of the current default cache.

Parameters:
Name Type Description
$name string
Documentation generated on Mon, 05 Apr 2010 14:01:39 +0200 by phpDocumentor 1.4.3