@ConfigurationProperties(prefix="memcached.cache",
ignoreInvalidFields=true)
public class MemcachedCacheProperties
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MemcachedCacheProperties.Protocol |
| Constructor and Description |
|---|
MemcachedCacheProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getExpiration() |
java.util.Map<java.lang.String,java.lang.Integer> |
getExpirations() |
net.spy.memcached.ClientMode |
getMode() |
java.lang.String |
getNamespace() |
java.lang.String |
getPrefix() |
MemcachedCacheProperties.Protocol |
getProtocol() |
java.util.List<java.net.InetSocketAddress> |
getServers() |
void |
setExpiration(java.lang.Integer expiration) |
void |
setExpirations(java.lang.String value) |
void |
setMode(net.spy.memcached.ClientMode mode) |
void |
setNamespace(java.lang.String namespace) |
void |
setPrefix(java.lang.String prefix) |
void |
setProtocol(MemcachedCacheProperties.Protocol protocol) |
void |
setServers(java.lang.String value)
Populate server list from comma-separated list of hostname:port strings.
|
public java.util.List<java.net.InetSocketAddress> getServers()
public void setServers(java.lang.String value)
value - Comma-separated listpublic net.spy.memcached.ClientMode getMode()
public void setMode(net.spy.memcached.ClientMode mode)
@DeprecatedConfigurationProperty(reason="As of release {@code 1.3.0}. To be removed in next major release. This value is expected to be extracted from property \'expirations\'.",
replacement="memcached.cache.expirations")
public java.lang.Integer getExpiration()
public void setExpiration(java.lang.Integer expiration)
public java.util.Map<java.lang.String,java.lang.Integer> getExpirations()
public void setExpirations(java.lang.String value)
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
@DeprecatedConfigurationProperty(reason="As of release {@code 1.1.0}. To be removed in next major release. This value is expected to be retained only as a private value for the cache namespace. The namespace value used is \'namespace\'")
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
public MemcachedCacheProperties.Protocol getProtocol()
public void setProtocol(MemcachedCacheProperties.Protocol protocol)