ZMObject
└─ZMCaches
public class ZMCaches
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| ZMCache | getCache(string group, array config, string type) Get a cache instance for the given group and configuration. |
| array | Get a list of all currently active caches. |
| array | Get a list of all providers. |
| static void | instance() Get instance. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public ZMCache getCache(string group, array config, string type)
Get a cache instance for the given group and configuration.
If the type is specified and it is neither ZMCache::PERSISTENT nor
ZMCache::TRANSIENT it will be taken as actual implementation name.
The rule for generating the class name of the implementation class is * ucwords[$type]Cache.
So, for example a type value of memcache would result in MemcacheCache.
ZMCache::PERSISTENT.public array getCaches()
Get a list of all currently active caches.
public array getProviders()
Get a list of all providers.
public static void instance()
Get instance.
Caching service.
Commonly supported caching options are:
Right now the only implementation supported is
ZMFileCache.