public interface Memcached
extends jmind.base.cache.ICache
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(java.lang.String key,
int exp,
java.lang.Object value) |
boolean |
add(java.lang.String key,
int exp,
java.lang.Object value,
long timeout) |
<T> boolean |
add(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
add(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
Add key-value item to memcached, success only when the key is not exists
in memcached.
|
void |
addWithNoReply(java.lang.String key,
int exp,
java.lang.Object value)
Add key-value item to memcached, success only when the key is not exists
in memcached.This method doesn't wait for reply.
|
<T> void |
addWithNoReply(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder) |
boolean |
append(java.lang.String key,
java.lang.Object value) |
boolean |
append(java.lang.String key,
java.lang.Object value,
long timeout)
Append value to key's data item,this method will wait for reply
|
void |
appendWithNoReply(java.lang.String key,
java.lang.Object value)
Append value to key's data item,this method doesn't wait for reply.
|
<T> boolean |
cas(java.lang.String key,
net.rubyeye.xmemcached.CASOperation<T> operation) |
<T> boolean |
cas(java.lang.String key,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation) |
<T> boolean |
cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.CASOperation<T> operation) |
<T> boolean |
cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.CASOperation<T> operation,
Transcoder<T> transcoder)
Cas is a check and set operation which means "store this data but only if
no one else has updated since I last fetched it."
|
<T> boolean |
cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation) |
<T> boolean |
cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation,
Transcoder<T> transcoder)
cas is a check and set operation which means "store this data but only if
no one else has updated since I last fetched it."
|
boolean |
cas(java.lang.String key,
int exp,
java.lang.Object value,
long cas) |
boolean |
cas(java.lang.String key,
int exp,
java.lang.Object value,
long timeout,
long cas) |
<T> boolean |
cas(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long cas) |
<T> boolean |
cas(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout,
long cas)
Cas is a check and set operation which means "store this data but only if
no one else has updated since I last fetched it."
|
<T> void |
casWithNoReply(java.lang.String key,
net.rubyeye.xmemcached.CASOperation<T> operation) |
<T> void |
casWithNoReply(java.lang.String key,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation) |
<T> void |
casWithNoReply(java.lang.String key,
int exp,
net.rubyeye.xmemcached.CASOperation<T> operation) |
<T> void |
casWithNoReply(java.lang.String key,
int exp,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation)
cas noreply
|
long |
decr(java.lang.String key,
long delta)
"decr" are used to change data for some item in-place, decrementing it.
|
long |
decr(java.lang.String key,
long delta,
long initValue) |
long |
decr(java.lang.String key,
long delta,
long initValue,
long timeout)
"decr" are used to change data for some item in-place, decrementing it.
|
long |
decr(java.lang.String key,
long delta,
long initValue,
long timeout,
int exp)
"incr" are used to change data for some item in-place, incrementing it.
|
void |
decrWithNoReply(java.lang.String key,
long delta)
"decr" are used to change data for some item in-place, decrementing it.
|
boolean |
delete(java.lang.String key) |
boolean |
delete(java.lang.String key,
long opTimeout)
Delete key's date item from memcached
|
void |
deleteWithNoReply(java.lang.String key) |
void |
flushAll(java.net.InetSocketAddress address,
long timeout,
int exptime) |
void |
flushAll(int exptime,
long timeout) |
void |
flushAllWithNoReply(java.net.InetSocketAddress address,
int exptime) |
void |
flushAllWithNoReply(int exptime) |
<T> java.util.Map<java.lang.String,T> |
get(java.util.Collection<java.lang.String> keyCollections) |
<T> java.util.Map<java.lang.String,T> |
get(java.util.Collection<java.lang.String> keyCollections,
long timeout) |
<T> java.util.Map<java.lang.String,T> |
get(java.util.Collection<java.lang.String> keyCollections,
long opTimeout,
Transcoder<T> transcoder)
Bulk get items
|
<T> java.util.Map<java.lang.String,T> |
get(java.util.Collection<java.lang.String> keyCollections,
Transcoder<T> transcoder) |
<T> T |
get(java.lang.String key) |
<T> T |
get(java.lang.String key,
long timeout) |
<T> T |
get(java.lang.String key,
long timeout,
Transcoder<T> transcoder)
Get value by key
|
<T> T |
get(java.lang.String key,
Transcoder<T> transcoder) |
<T> T |
getAndTouch(java.lang.String key,
int newExp)
Get item and set a new expiration time for it,using default opTimeout
|
<T> T |
getAndTouch(java.lang.String key,
int newExp,
long opTimeout)
Get item and set a new expiration time for it
|
java.util.Collection<java.net.InetSocketAddress> |
getAvaliableServers()
get avaliable memcached servers's socket address.
|
long |
getConnectTimeout()
Get the connect timeout
|
net.rubyeye.xmemcached.Counter |
getCounter(java.lang.String key)
Get counter for key,and if the key's value is not set,then set it with 0.
|
net.rubyeye.xmemcached.Counter |
getCounter(java.lang.String key,
long initialValue)
Get counter for key,and if the key's value is not set,then set it with
initial value.
|
jmind.base.lang.ExpireRecord |
getException() |
long |
getHealSessionInterval()
Return the default heal session interval in milliseconds
|
java.lang.String |
getName()
Return the cache instance name
|
long |
getOpTimeout()
get operation timeout setting
|
net.rubyeye.xmemcached.utils.Protocol |
getProtocol() |
<T> java.util.Map<java.lang.String,net.rubyeye.xmemcached.GetsResponse<T>> |
gets(java.util.Collection<java.lang.String> keyCollections) |
<T> java.util.Map<java.lang.String,net.rubyeye.xmemcached.GetsResponse<T>> |
gets(java.util.Collection<java.lang.String> keyCollections,
long timeout) |
<T> net.rubyeye.xmemcached.GetsResponse<T> |
gets(java.lang.String key) |
<T> net.rubyeye.xmemcached.GetsResponse<T> |
gets(java.lang.String key,
long timeout) |
java.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> |
getStats() |
java.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> |
getStats(long timeout)
Get stats from all memcached servers
|
java.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> |
getStatsByItem(java.lang.String itemName)
Get special item stats.
|
java.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> |
getStatsByItem(java.lang.String itemName,
long timeout) |
<T> Transcoder<T> |
getTranscoder() |
java.util.Map<java.net.InetSocketAddress,java.lang.String> |
getVersions()
Get all connected memcached servers's version.
|
java.util.Map<java.net.InetSocketAddress,java.lang.String> |
getVersions(long timeout) |
long |
incr(java.lang.String key,
long delta)
"incr" are used to change data for some item in-place, incrementing it.
|
long |
incr(java.lang.String key,
long delta,
long initValue)
2014-2-12
|
long |
incr(java.lang.String key,
long delta,
long initValue,
long timeout)
"incr" are used to change data for some item in-place, incrementing it.
|
long |
incr(java.lang.String key,
long delta,
long initValue,
long timeout,
int exp)
"incr" are used to change data for some item in-place, incrementing it.
|
void |
incrWithNoReply(java.lang.String key,
long delta)
"incr" are used to change data for some item in-place, incrementing it.
|
boolean |
isSanitizeKeys() |
boolean |
isShutdown() |
boolean |
prepend(java.lang.String key,
java.lang.Object value) |
boolean |
prepend(java.lang.String key,
java.lang.Object value,
long timeout)
Prepend value to key's data item in memcached.This method doesn't wait
for reply.
|
void |
prependWithNoReply(java.lang.String key,
java.lang.Object value)
Prepend value to key's data item in memcached.This method doesn't wait
for reply.
|
boolean |
replace(java.lang.String key,
int exp,
java.lang.Object value) |
boolean |
replace(java.lang.String key,
int exp,
java.lang.Object value,
long timeout) |
<T> boolean |
replace(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
replace(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
Replace the key's data item in memcached,success only when the key's data
item is exists in memcached.This method will wait for reply from server.
|
void |
replaceWithNoReply(java.lang.String key,
int exp,
java.lang.Object value)
Replace the key's data item in memcached,success only when the key's data
item is exists in memcached.This method doesn't wait for reply from
server.
|
<T> void |
replaceWithNoReply(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder) |
boolean |
set(java.lang.String key,
int exp,
java.lang.Object value) |
boolean |
set(java.lang.String key,
int exp,
java.lang.Object value,
long timeout) |
<T> boolean |
set(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
set(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
Store key-value item to memcached
|
boolean |
set(java.lang.String key,
java.lang.Object value)
默认一个月
2013-7-22
|
void |
setWithNoReply(java.lang.String key,
int exp,
java.lang.Object value)
Store key-value item to memcached,doesn't wait for reply
|
<T> void |
setWithNoReply(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder) |
boolean |
touch(java.lang.String key,
int exp)
Set a new expiration time for an existing item,using default opTimeout
second.
|
boolean |
touch(java.lang.String key,
int exp,
long opTimeout)
Set a new expiration time for an existing item
|
jmind.base.lang.ExpireRecord getException()
<T> net.rubyeye.xmemcached.GetsResponse<T> gets(java.lang.String key)
<T> net.rubyeye.xmemcached.GetsResponse<T> gets(java.lang.String key,
long timeout)
<T> java.util.Map<java.lang.String,net.rubyeye.xmemcached.GetsResponse<T>> gets(java.util.Collection<java.lang.String> keyCollections)
<T> java.util.Map<java.lang.String,net.rubyeye.xmemcached.GetsResponse<T>> gets(java.util.Collection<java.lang.String> keyCollections,
long timeout)
<T> T get(java.lang.String key,
long timeout,
Transcoder<T> transcoder)
T - key - Keytimeout - Operation timeout,if the method is not returned in this
time,throw TimeoutExceptiontranscoder - The value's transcoderTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> T get(java.lang.String key,
long timeout)
<T> T get(java.lang.String key,
Transcoder<T> transcoder)
<T> T get(java.lang.String key)
get 在接口中 jmind.base.cache.ICache<T> java.util.Map<java.lang.String,T> get(java.util.Collection<java.lang.String> keyCollections,
long opTimeout,
Transcoder<T> transcoder)
T - keyCollections - key collectionopTimeout - opTimeouttranscoder - Value transcoderTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> java.util.Map<java.lang.String,T> get(java.util.Collection<java.lang.String> keyCollections,
Transcoder<T> transcoder)
T - keyCollections - transcoder - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionget(Collection, long, Transcoder)<T> java.util.Map<java.lang.String,T> get(java.util.Collection<java.lang.String> keyCollections)
T - keyCollections - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionget(Collection, long, Transcoder)<T> java.util.Map<java.lang.String,T> get(java.util.Collection<java.lang.String> keyCollections,
long timeout)
T - keyCollections - timeout - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionget(Collection, long, Transcoder)<T> boolean set(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
T - key - stored keyexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - stored datatranscoder - transocdertimeout - operation timeout,in millisecondsjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean set(java.lang.String key,
int exp,
java.lang.Object value)
set 在接口中 jmind.base.cache.ICacheset(String, int, Object, Transcoder, long)boolean set(java.lang.String key,
java.lang.Object value)
set 在接口中 jmind.base.cache.ICachekey - value - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean set(java.lang.String key,
int exp,
java.lang.Object value,
long timeout)
<T> boolean set(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder)
void setWithNoReply(java.lang.String key,
int exp,
java.lang.Object value)
T - key - stored keyexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - stored datatranscoder - transocderTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> void setWithNoReply(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder)
T - key - exp - value - transcoder - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionsetWithNoReply(String, int, Object, Transcoder)<T> boolean add(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
T - key - exp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - transcoder - timeout - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean add(java.lang.String key,
int exp,
java.lang.Object value)
key - exp - value - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionadd(String, int, Object, Transcoder, long)boolean add(java.lang.String key,
int exp,
java.lang.Object value,
long timeout)
key - exp - value - timeout - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionadd(String, int, Object, Transcoder, long)<T> boolean add(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder)
T - key - exp - value - transcoder - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionadd(String, int, Object, Transcoder, long)void addWithNoReply(java.lang.String key,
int exp,
java.lang.Object value)
T - key - exp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - transcoder - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> void addWithNoReply(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder)
T - key - exp - value - transcoder - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionaddWithNoReply(String, int, Object, Transcoder)<T> boolean replace(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
T - key - exp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - transcoder - timeout - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean replace(java.lang.String key,
int exp,
java.lang.Object value)
key - exp - value - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionreplace(String, int, Object, Transcoder, long)boolean replace(java.lang.String key,
int exp,
java.lang.Object value,
long timeout)
key - exp - value - timeout - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionreplace(String, int, Object, Transcoder, long)<T> boolean replace(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder)
T - key - exp - value - transcoder - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionreplace(String, int, Object, Transcoder, long)void replaceWithNoReply(java.lang.String key,
int exp,
java.lang.Object value)
T - key - exp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - transcoder - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> void replaceWithNoReply(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder)
T - key - exp - value - transcoder - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionreplaceWithNoReply(String, int, Object, Transcoder)boolean append(java.lang.String key,
java.lang.Object value)
key - value - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionappend(String, Object, long)boolean append(java.lang.String key,
java.lang.Object value,
long timeout)
key - value - timeout - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionvoid appendWithNoReply(java.lang.String key,
java.lang.Object value)
key - value - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean prepend(java.lang.String key,
java.lang.Object value)
key - value - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionprepend(String, Object, long)boolean prepend(java.lang.String key,
java.lang.Object value,
long timeout)
key - value - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionvoid prependWithNoReply(java.lang.String key,
java.lang.Object value)
key - value - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean cas(java.lang.String key,
int exp,
java.lang.Object value,
long cas)
key - exp - value - cas - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncas(String, int, Object, Transcoder, long, long)<T> boolean cas(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout,
long cas)
T - key - exp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - transcoder - timeout - cas - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean cas(java.lang.String key,
int exp,
java.lang.Object value,
long timeout,
long cas)
key - exp - value - timeout - cas - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncas(String, int, Object, Transcoder, long, long)<T> boolean cas(java.lang.String key,
int exp,
T value,
Transcoder<T> transcoder,
long cas)
T - key - exp - value - transcoder - cas - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncas(String, int, Object, Transcoder, long, long)<T> boolean cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.CASOperation<T> operation,
Transcoder<T> transcoder)
T - key - exp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.operation - CASOperationtranscoder - object transcoderTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> boolean cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation,
Transcoder<T> transcoder)
T - key - exp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.getsResponse - gets method's resultoperation - CASOperationtranscoder - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> boolean cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - exp - getsResponse - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncas(String, int, GetsResponse, CASOperation, Transcoder)<T> boolean cas(java.lang.String key,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - getsResponse - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncas(String, int, GetsResponse, CASOperation, Transcoder)<T> boolean cas(java.lang.String key,
int exp,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - exp - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncas(String, int, GetsResponse, CASOperation, Transcoder)<T> boolean cas(java.lang.String key,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncas(String, int, GetsResponse, CASOperation, Transcoder)<T> void casWithNoReply(java.lang.String key,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - getsResponse - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> void casWithNoReply(java.lang.String key,
int exp,
net.rubyeye.xmemcached.GetsResponse<T> getsResponse,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - exp - getsResponse - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> void casWithNoReply(java.lang.String key,
int exp,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - exp - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncasWithNoReply(String, int, GetsResponse, CASOperation)<T> void casWithNoReply(java.lang.String key,
net.rubyeye.xmemcached.CASOperation<T> operation)
T - key - operation - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptioncasWithNoReply(String, int, GetsResponse, CASOperation)boolean touch(java.lang.String key,
int exp,
long opTimeout)
key - item's keyexp - New expiration time, in seconds. Can be up to 30 days. After
30 days, is treated as a unix timestamp of an exact date.opTimeout - operation timeoutTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean touch(java.lang.String key,
int exp)
key - item's keyexp - New expiration time, in seconds. Can be up to 30 days. After
30 days, is treated as a unix timestamp of an exact date.TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> T getAndTouch(java.lang.String key,
int newExp,
long opTimeout)
T - key - item's keynewExp - New expiration time, in seconds. Can be up to 30 days. After
30 days, is treated as a unix timestamp of an exact date.opTimeout - operation timeoutTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedException<T> T getAndTouch(java.lang.String key,
int newExp)
T - key - newExp - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionlong incr(java.lang.String key,
long delta)
key - delta - 增加值TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionlong incr(java.lang.String key,
long delta,
long initValue)
key - delta - 增加值initValue - 默认值TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionlong incr(java.lang.String key,
long delta,
long initValue,
long timeout)
key - keynum - incrementinitValue - initValue if the data is not exists.timeout - operation timeoutTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionlong incr(java.lang.String key,
long delta,
long initValue,
long timeout,
int exp)
key - keydelta - increment deltainitValue - the initial value to be added when value is not foundtimeout - operation timeoutexp - the initial vlaue expire time, in seconds. Can be up to 30
days. After 30 days, is treated as a unix timestamp of an
exact date.TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionlong decr(java.lang.String key,
long delta)
key - num - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionlong decr(java.lang.String key,
long delta,
long initValue)
key - num - initValue - TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptiondecrlong decr(java.lang.String key,
long delta,
long initValue,
long timeout)
key - The keynum - The incrementinitValue - The initial value if the data is not exists.timeout - Operation timeoutTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionlong decr(java.lang.String key,
long delta,
long initValue,
long timeout,
int exp)
key - delta - initValue - the initial value to be added when value is not foundtimeout - exp - the initial vlaue expire time, in seconds. Can be up to 30
days. After 30 days, is treated as a unix timestamp of an
exact date.TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionvoid incrWithNoReply(java.lang.String key,
long delta)
key - num - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionvoid decrWithNoReply(java.lang.String key,
long delta)
key - num - java.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean delete(java.lang.String key,
long opTimeout)
key - opTimeout - Operation timeoutTimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionboolean delete(java.lang.String key)
delete 在接口中 jmind.base.cache.ICachevoid deleteWithNoReply(java.lang.String key)
net.rubyeye.xmemcached.Counter getCounter(java.lang.String key)
key - net.rubyeye.xmemcached.Counter getCounter(java.lang.String key,
long initialValue)
key - initialValue - java.util.Map<java.net.InetSocketAddress,java.lang.String> getVersions(long timeout)
java.util.Map<java.net.InetSocketAddress,java.lang.String> getVersions()
TimeoutExceptionjava.lang.InterruptedExceptionnet.rubyeye.xmemcached.exception.MemcachedExceptionjava.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> getStats(long timeout)
timeout - net.rubyeye.xmemcached.exception.MemcachedExceptionjava.lang.InterruptedExceptionTimeoutExceptionjava.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> getStats()
java.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> getStatsByItem(java.lang.String itemName)
item - java.util.Map<java.net.InetSocketAddress,java.util.Map<java.lang.String,java.lang.String>> getStatsByItem(java.lang.String itemName,
long timeout)
<T> Transcoder<T> getTranscoder()
long getOpTimeout()
java.util.Collection<java.net.InetSocketAddress> getAvaliableServers()
void flushAllWithNoReply(int exptime)
void flushAll(int exptime,
long timeout)
void flushAllWithNoReply(java.net.InetSocketAddress address,
int exptime)
void flushAll(java.net.InetSocketAddress address,
long timeout,
int exptime)
long getHealSessionInterval()
long getConnectTimeout()
connectTimeout - net.rubyeye.xmemcached.utils.Protocol getProtocol()
boolean isSanitizeKeys()
boolean isShutdown()
java.lang.String getName()
Copyright © 2018. All Rights Reserved.