ZenMagick 0.9.8


org.zenmagick.core.services.cache.ZMCaches
\core\services\cache\ZMCaches.php at line 38

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 2556 2009-10-31 07:38:13Z dermanomann $

Fields inherited from org.zenmagick.core.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.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\core\services\cache\ZMCaches.php at line 47

ZMCaches

public ZMCaches()

Create new instance.


Method Detail

\core\services\cache\ZMCaches.php at line 78

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

\core\services\cache\ZMCaches.php at line 100

getCaches

public array getCaches()

Get a list of all active caches.

Returns:
List of caches.

\core\services\cache\ZMCaches.php at line 63

instance

public static void instance()

Get instance.


ZenMagick 0.9.8