public class EhCache3Factory extends Object implements CacheFactory
DEFAULT_CACHE_NAME
Constructor and Description |
---|
EhCache3Factory(CacheModule cacheModule,
info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths,
info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties) |
Modifier and Type | Method and Description |
---|---|
int |
getBlockingTimeout() |
Cache |
getCache(String name)
Retrieves a named cache.
|
List<String> |
getCacheNames() |
Map<String,org.ehcache.config.Builder<? extends org.ehcache.config.CacheConfiguration>> |
getCaches() |
String |
getDiskStorePath() |
void |
init() |
static String |
resolveDiskStorePath(info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties,
info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths) |
void |
setBlockingTimeout(int blockingTimeout) |
void |
setCaches(Map<String,org.ehcache.config.Builder<? extends org.ehcache.config.CacheConfiguration>> caches) |
void |
setDiskStorePath(String diskStorePath) |
void |
start(boolean isRestart) |
void |
stop(boolean isRestart) |
@Inject public EhCache3Factory(CacheModule cacheModule, info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths, info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties)
public void init()
public void start(boolean isRestart)
start
in interface CacheFactory
public void stop(boolean isRestart)
stop
in interface CacheFactory
public List<String> getCacheNames()
getCacheNames
in interface CacheFactory
public Cache getCache(String name)
CacheFactory
getCache
in interface CacheFactory
public static String resolveDiskStorePath(info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties, info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths)
public Map<String,org.ehcache.config.Builder<? extends org.ehcache.config.CacheConfiguration>> getCaches()
public void setCaches(Map<String,org.ehcache.config.Builder<? extends org.ehcache.config.CacheConfiguration>> caches)
public String getDiskStorePath()
public void setDiskStorePath(String diskStorePath)
public int getBlockingTimeout()
public void setBlockingTimeout(int blockingTimeout)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.