public class CacheModule extends AbstractCacheModule
ContentCachingConfiguration
,
CacheFactory
DEFAULT_CACHE_CONFIG
Constructor and Description |
---|
CacheModule(CacheMonitor cacheMonitor,
info.magnolia.event.EventBus systemEventBus) |
Modifier and Type | Method and Description |
---|---|
CacheFactory |
getCacheFactory()
Inject
CacheFactoryProvider } instead. |
ContentCompression |
getCompression() |
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, @Named(value="system") info.magnolia.event.EventBus systemEventBus)
public CacheFactory getCacheFactory()
CacheFactoryProvider
} instead.getCacheFactory
in class AbstractCacheModule
public void setCacheFactory(CacheFactory cacheFactory)
public Map<String,ContentCachingConfiguration> getContentCaching()
public void setContentCaching(Map<String,ContentCachingConfiguration> contentCaching)
public void setCompression(ContentCompression compression)
public ContentCompression getCompression()
public void register(CacheModuleLifecycleListener listener)
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 © 2019 Magnolia International Ltd.. All rights reserved.