public class CacheModule extends AbstractCacheModule
ContentCachingConfiguration
,
CacheFactory
DEFAULT_CACHE_CONFIG
Constructor and Description |
---|
CacheModule(CacheMonitor cacheMonitor) |
CacheModule(info.magnolia.module.ModuleManager moduleManager,
CacheMonitor cacheMonitor)
Deprecated.
since 5.4. Use
CacheModule(info.magnolia.module.cache.mbean.CacheMonitor) intead. |
Modifier and Type | Method and Description |
---|---|
ContentCachingConfiguration |
addConfiguration(String name,
CacheConfiguration cacheConfiguration)
Deprecated.
since 5.4 use
setContentCaching(java.util.Map) } |
CacheFactory |
getCacheFactory()
Inject
CacheFactoryProvider } instead. |
ContentCompression |
getCompression() |
ContentCachingConfiguration |
getConfiguration(String name)
Deprecated.
since 5.4 use
getContentCaching(String) |
Map<String,ContentCachingConfiguration> |
getContentCaching() |
ContentCachingConfiguration |
getContentCaching(String name) |
void |
register(CacheModuleLifecycleListener listener) |
void |
setCacheFactory(CacheFactory cacheFactory) |
void |
setCompression(ContentCompression compression) |
void |
setContentCaching(Map<String,ContentCachingConfiguration> contentCaching) |
void |
start(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext) |
void |
stop(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext) |
getCacheMonitor, startCache, stopCache
@Inject public CacheModule(CacheMonitor cacheMonitor)
@Deprecated public CacheModule(info.magnolia.module.ModuleManager moduleManager, CacheMonitor cacheMonitor)
CacheModule(info.magnolia.module.cache.mbean.CacheMonitor)
intead.public CacheFactory getCacheFactory()
CacheFactoryProvider
} instead.getCacheFactory
in class AbstractCacheModule
public void setCacheFactory(CacheFactory cacheFactory)
public Map<String,ContentCachingConfiguration> getContentCaching()
@Deprecated public ContentCachingConfiguration addConfiguration(String name, CacheConfiguration cacheConfiguration)
setContentCaching(java.util.Map)
}public void setContentCaching(Map<String,ContentCachingConfiguration> contentCaching)
public void setCompression(ContentCompression compression)
public ContentCompression getCompression()
public void register(CacheModuleLifecycleListener listener)
@Deprecated public ContentCachingConfiguration getConfiguration(String name)
getContentCaching(String)
public ContentCachingConfiguration getContentCaching(String name)
getContentCaching
in class AbstractCacheModule
public void start(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext)
public void stop(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.