ZenMagick 0.9.1


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 957 2008-03-30 21:03:12Z DerManoMann $

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
backtrace, create, log, 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 file.
Returns:
A cache instance or null.

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.1