ZenMagick 0.9.6


org.zenmagick.service.ZMCaches

Class ZMCaches

ZMObject
|
+--ZMCaches

public class ZMCaches
extends ZMObject

Caching service.

Commonly supported caching options are:

Right now the only implementation supported is ZMFileCache.

Author:
DerManoMann
Version:
$Id: ZMCaches.php 1966 2009-02-14 10:52:50Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMCaches()

Create new instance.

Method Summary
ZMCache

getCache(string group, array config, string type)

Get a cache instance for the given group and configuration.

array

getCaches()

Get a list of all active caches.

static void

instance()

Get instance.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMCaches

public ZMCaches()

Create new instance. /


Method Detail

getCache

public ZMCache getCache(string group, array config, string type)

Get a cache instance for the given group and configuration.

Parameters:
group - The cache group.
config - Configuration; default is an empty array.
type - Optional cache type; default is ZMCache::PERSISTENT.
Returns:
A cache instance or null.
See Also:
ZMCache::PERSISTENT
ZMCache::TRANSIENT

getCaches

public array getCaches()

Get a list of all active caches.

Returns:
List of caches.

instance

public static void instance()

Get instance. /


ZenMagick 0.9.6