public class MemcachedFactory extends Object implements CacheFactory
MemcachedClient
.Modifier and Type | Field and Description |
---|---|
protected Map<String,MemcachedWrapper> |
clients |
DEFAULT_CACHE_NAME
Constructor and Description |
---|
MemcachedFactory(info.magnolia.objectfactory.ComponentProvider componentProvider) |
Modifier and Type | Method and Description |
---|---|
int |
getBlockingTimeout() |
Cache |
getCache(String name)
Retrieves a named cache.
|
List<String> |
getCacheNames() |
Map<String,MemcachedConnectionFactoryBuilder> |
getCaches() |
String |
getCacheWrapperImplementation() |
void |
setBlockingTimeout(int blockingTimeout) |
void |
setCaches(Map<String,MemcachedConnectionFactoryBuilder> caches) |
void |
setCacheWrapperImplementation(String cacheWrapperImplementation) |
void |
start(boolean isRestart) |
void |
stop(boolean isRestart) |
protected Map<String,MemcachedWrapper> clients
@Inject public MemcachedFactory(info.magnolia.objectfactory.ComponentProvider componentProvider)
public Cache getCache(String name)
CacheFactory
getCache
in interface CacheFactory
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 int getBlockingTimeout()
public void setBlockingTimeout(int blockingTimeout)
public Map<String,MemcachedConnectionFactoryBuilder> getCaches()
public void setCaches(Map<String,MemcachedConnectionFactoryBuilder> caches)
public String getCacheWrapperImplementation()
public void setCacheWrapperImplementation(String cacheWrapperImplementation)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.