Package | Description |
---|---|
net.rubyeye.xmemcached |
XMemcached's main classes and interfaces,use these classes/interfaces to interact with memcached servers.
|
net.rubyeye.xmemcached.aws | |
net.rubyeye.xmemcached.exception |
XMemcached Exceptions
|
net.rubyeye.xmemcached.impl |
Manage tcp connection,memcached protocol optimized,and some MBeans for monitor.
|
net.rubyeye.xmemcached.networking |
Networking layout to talk with memcached.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MemcachedClient.add(String key,
int exp,
Object value) |
boolean |
XMemcachedClient.add(String key,
int exp,
Object value) |
boolean |
MemcachedClient.add(String key,
int exp,
Object value,
long timeout) |
boolean |
XMemcachedClient.add(String key,
int exp,
Object value,
long timeout) |
<T> boolean |
MemcachedClient.add(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
XMemcachedClient.add(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
MemcachedClient.add(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.
|
<T> boolean |
XMemcachedClient.add(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout) |
long |
Counter.addAndGet(long delta)
Add value and get the result
|
void |
MemcachedClient.addWithNoReply(String key,
int exp,
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.
|
void |
XMemcachedClient.addWithNoReply(String key,
int exp,
Object value) |
<T> void |
MemcachedClient.addWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> void |
XMemcachedClient.addWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder) |
boolean |
MemcachedClient.append(String key,
Object value) |
boolean |
XMemcachedClient.append(String key,
Object value) |
boolean |
MemcachedClient.append(String key,
Object value,
long timeout)
Append value to key's data item,this method will wait for reply
|
boolean |
XMemcachedClient.append(String key,
Object value,
long timeout) |
void |
MemcachedClient.appendWithNoReply(String key,
Object value)
Append value to key's data item,this method doesn't wait for reply.
|
void |
XMemcachedClient.appendWithNoReply(String key,
Object value) |
T |
MemcachedClientCallable.call(MemcachedClient client) |
<T> boolean |
MemcachedClient.cas(String key,
CASOperation<T> operation) |
<T> boolean |
XMemcachedClient.cas(String key,
CASOperation<T> operation) |
<T> boolean |
MemcachedClient.cas(String key,
GetsResponse<T> getsResponse,
CASOperation<T> operation) |
<T> boolean |
XMemcachedClient.cas(String key,
GetsResponse<T> getsReponse,
CASOperation<T> operation) |
<T> boolean |
MemcachedClient.cas(String key,
int exp,
CASOperation<T> operation) |
<T> boolean |
XMemcachedClient.cas(String key,
int exp,
CASOperation<T> operation) |
<T> boolean |
MemcachedClient.cas(String key,
int exp,
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 |
XMemcachedClient.cas(String key,
int exp,
CASOperation<T> operation,
Transcoder<T> transcoder) |
<T> boolean |
MemcachedClient.cas(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation) |
<T> boolean |
XMemcachedClient.cas(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation) |
<T> boolean |
MemcachedClient.cas(String key,
int exp,
GetsResponse<T> getsReponse,
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 |
XMemcachedClient.cas(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation,
Transcoder<T> transcoder) |
boolean |
MemcachedClient.cas(String key,
int exp,
Object value,
long cas) |
boolean |
XMemcachedClient.cas(String key,
int exp,
Object value,
long cas) |
boolean |
MemcachedClient.cas(String key,
int exp,
Object value,
long timeout,
long cas) |
boolean |
XMemcachedClient.cas(String key,
int exp,
Object value,
long timeout,
long cas) |
<T> boolean |
MemcachedClient.cas(String key,
int exp,
T value,
Transcoder<T> transcoder,
long cas) |
<T> boolean |
XMemcachedClient.cas(String key,
int exp,
T value,
Transcoder<T> transcoder,
long cas) |
<T> boolean |
MemcachedClient.cas(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> boolean |
XMemcachedClient.cas(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout,
long cas) |
<T> void |
MemcachedClient.casWithNoReply(String key,
CASOperation<T> operation) |
<T> void |
XMemcachedClient.casWithNoReply(String key,
CASOperation<T> operation) |
<T> void |
MemcachedClient.casWithNoReply(String key,
GetsResponse<T> getsResponse,
CASOperation<T> operation) |
<T> void |
XMemcachedClient.casWithNoReply(String key,
GetsResponse<T> getsResponse,
CASOperation<T> operation) |
<T> void |
MemcachedClient.casWithNoReply(String key,
int exp,
CASOperation<T> operation) |
<T> void |
XMemcachedClient.casWithNoReply(String key,
int exp,
CASOperation<T> operation) |
<T> void |
MemcachedClient.casWithNoReply(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation)
cas noreply
|
<T> void |
XMemcachedClient.casWithNoReply(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation) |
protected void |
XMemcachedClient.checkException(Command command) |
long |
MemcachedClient.decr(String key,
long delta)
"decr" are used to change data for some item in-place, decrementing it.
|
long |
XMemcachedClient.decr(String key,
long delta) |
long |
MemcachedClient.decr(String key,
long delta,
long initValue) |
long |
XMemcachedClient.decr(String key,
long delta,
long initValue) |
long |
MemcachedClient.decr(String key,
long delta,
long initValue,
long timeout)
"decr" are used to change data for some item in-place, decrementing it.
|
long |
XMemcachedClient.decr(String key,
long delta,
long initValue,
long timeout) |
long |
MemcachedClient.decr(String key,
long delta,
long initValue,
long timeout,
int exp)
"incr" are used to change data for some item in-place, incrementing it.
|
long |
XMemcachedClient.decr(String key,
long delta,
long initValue,
long timeout,
int exp) |
long |
Counter.decrementAndGet()
Decrease value by one
|
void |
MemcachedClient.decrWithNoReply(String key,
long delta)
"decr" are used to change data for some item in-place, decrementing it.
|
void |
XMemcachedClient.decrWithNoReply(String key,
long delta) |
boolean |
MemcachedClient.delete(String key) |
boolean |
XMemcachedClient.delete(String key) |
boolean |
MemcachedClient.delete(String key,
int time)
Deprecated.
|
boolean |
XMemcachedClient.delete(String key,
int time) |
boolean |
MemcachedClient.delete(String key,
long opTimeout)
Delete key's date item from memcached
|
boolean |
XMemcachedClient.delete(String key,
long opTimeout) |
boolean |
MemcachedClient.delete(String key,
long cas,
long opTimeout)
Delete key's date item from memcached only if its cas value is the same as what was read.
|
boolean |
XMemcachedClient.delete(String key,
long cas,
long opTimeout) |
void |
MemcachedClient.deleteWithNoReply(String key) |
void |
XMemcachedClient.deleteWithNoReply(String key) |
void |
MemcachedClient.deleteWithNoReply(String key,
int time)
Deprecated.
|
void |
XMemcachedClient.deleteWithNoReply(String key,
int time)
Delete key's data item from memcached.This method doesn't wait for reply
|
void |
MemcachedClient.flushAll()
Make All connected memcached's data item invalid
|
void |
XMemcachedClient.flushAll() |
void |
MemcachedClient.flushAll(InetSocketAddress address)
Invalidate all existing items immediately
|
void |
XMemcachedClient.flushAll(InetSocketAddress address) |
void |
MemcachedClient.flushAll(InetSocketAddress address,
long timeout) |
void |
XMemcachedClient.flushAll(InetSocketAddress address,
long timeout) |
void |
MemcachedClient.flushAll(InetSocketAddress address,
long timeout,
int exptime) |
void |
XMemcachedClient.flushAll(InetSocketAddress address,
long timeout,
int exptime) |
void |
MemcachedClient.flushAll(int exptime,
long timeout) |
void |
XMemcachedClient.flushAll(int exptime,
long timeout) |
void |
MemcachedClient.flushAll(long timeout)
Make All connected memcached's data item invalid
|
void |
XMemcachedClient.flushAll(long timeout) |
void |
MemcachedClient.flushAll(String host)
Deprecated.
|
void |
XMemcachedClient.flushAll(String host) |
void |
MemcachedClient.flushAllWithNoReply() |
void |
XMemcachedClient.flushAllWithNoReply() |
void |
MemcachedClient.flushAllWithNoReply(InetSocketAddress address) |
void |
XMemcachedClient.flushAllWithNoReply(InetSocketAddress address) |
void |
MemcachedClient.flushAllWithNoReply(InetSocketAddress address,
int exptime) |
void |
XMemcachedClient.flushAllWithNoReply(InetSocketAddress address,
int exptime) |
void |
MemcachedClient.flushAllWithNoReply(int exptime) |
void |
XMemcachedClient.flushAllWithNoReply(int exptime) |
long |
Counter.get()
Get current value
|
<T> Map<String,T> |
MemcachedClient.get(Collection<String> keyCollections) |
<T> Map<String,T> |
XMemcachedClient.get(Collection<String> keyCollections) |
<T> Map<String,T> |
MemcachedClient.get(Collection<String> keyCollections,
long timeout) |
<T> Map<String,T> |
XMemcachedClient.get(Collection<String> keyCollections,
long timeout) |
<T> Map<String,T> |
MemcachedClient.get(Collection<String> keyCollections,
long opTimeout,
Transcoder<T> transcoder)
Bulk get items
|
<T> Map<String,T> |
XMemcachedClient.get(Collection<String> keyCollections,
long timeout,
Transcoder<T> transcoder) |
<T> Map<String,T> |
MemcachedClient.get(Collection<String> keyCollections,
Transcoder<T> transcoder) |
<T> Map<String,T> |
XMemcachedClient.get(Collection<String> keyCollections,
Transcoder<T> transcoder) |
<T> T |
MemcachedClient.get(String key) |
<T> T |
XMemcachedClient.get(String key) |
<T> T |
MemcachedClient.get(String key,
long timeout) |
<T> T |
XMemcachedClient.get(String key,
long timeout) |
<T> T |
MemcachedClient.get(String key,
long timeout,
Transcoder<T> transcoder)
Get value by key
|
<T> T |
XMemcachedClient.get(String key,
long timeout,
Transcoder<T> transcoder) |
<T> T |
MemcachedClient.get(String key,
Transcoder<T> transcoder) |
<T> T |
XMemcachedClient.get(String key,
Transcoder<T> transcoder) |
<T> T |
MemcachedClient.getAndTouch(String key,
int newExp)
Get item and set a new expiration time for it,using default opTimeout
|
<T> T |
XMemcachedClient.getAndTouch(String key,
int newExp) |
<T> T |
MemcachedClient.getAndTouch(String key,
int newExp,
long opTimeout)
Get item and set a new expiration time for it
|
<T> T |
XMemcachedClient.getAndTouch(String key,
int newExp,
long opTimeout) |
KeyIterator |
MemcachedClient.getKeyIterator(InetSocketAddress address)
Deprecated.
memcached 1.6.x will remove cachedump stats command,so this method will be removed
in the future
|
KeyIterator |
XMemcachedClient.getKeyIterator(InetSocketAddress address)
Deprecated.
memcached 1.6.x will remove cachedump stats command,so this method will be removed
in the future
|
String |
XMemcachedClient.getNamespace(String ns)
Returns the real namespace of ns.
|
<T> Map<String,GetsResponse<T>> |
MemcachedClient.gets(Collection<String> keyCollections) |
<T> Map<String,GetsResponse<T>> |
XMemcachedClient.gets(Collection<String> keyCollections) |
<T> Map<String,GetsResponse<T>> |
MemcachedClient.gets(Collection<String> keyCollections,
long timeout) |
<T> Map<String,GetsResponse<T>> |
XMemcachedClient.gets(Collection<String> keyCollections,
long timeout) |
<T> Map<String,GetsResponse<T>> |
MemcachedClient.gets(Collection<String> keyCollections,
long opTime,
Transcoder<T> transcoder)
Bulk gets items
|
<T> Map<String,GetsResponse<T>> |
XMemcachedClient.gets(Collection<String> keyCollections,
long timeout,
Transcoder<T> transcoder) |
<T> Map<String,GetsResponse<T>> |
MemcachedClient.gets(Collection<String> keyCollections,
Transcoder<T> transcoder) |
<T> Map<String,GetsResponse<T>> |
XMemcachedClient.gets(Collection<String> keyCollections,
Transcoder<T> transcoder) |
<T> GetsResponse<T> |
MemcachedClient.gets(String key) |
<T> GetsResponse<T> |
XMemcachedClient.gets(String key) |
<T> GetsResponse<T> |
MemcachedClient.gets(String key,
long timeout) |
<T> GetsResponse<T> |
XMemcachedClient.gets(String key,
long timeout) |
<T> GetsResponse<T> |
MemcachedClient.gets(String key,
long timeout,
Transcoder<T> transcoder)
Just like get,But it return a GetsResponse,include cas value for cas update.
|
<T> GetsResponse<T> |
XMemcachedClient.gets(String key,
long timeout,
Transcoder<T> transcoder) |
<T> GetsResponse<T> |
MemcachedClient.gets(String key,
Transcoder transcoder) |
<T> GetsResponse<T> |
XMemcachedClient.gets(String key,
Transcoder transcoder) |
Map<InetSocketAddress,Map<String,String>> |
MemcachedClient.getStats() |
Map<InetSocketAddress,Map<String,String>> |
XMemcachedClient.getStats() |
Map<InetSocketAddress,Map<String,String>> |
MemcachedClient.getStats(long timeout)
Get stats from all memcached servers
|
Map<InetSocketAddress,Map<String,String>> |
XMemcachedClient.getStats(long timeout) |
Map<InetSocketAddress,Map<String,String>> |
MemcachedClient.getStatsByItem(String itemName)
Get special item stats.
|
Map<InetSocketAddress,Map<String,String>> |
XMemcachedClient.getStatsByItem(String itemName) |
Map<InetSocketAddress,Map<String,String>> |
MemcachedClient.getStatsByItem(String itemName,
long timeout) |
Map<InetSocketAddress,Map<String,String>> |
XMemcachedClient.getStatsByItem(String itemName,
long timeout) |
Map<InetSocketAddress,String> |
MemcachedClient.getVersions()
Get all connected memcached servers's version.
|
Map<InetSocketAddress,String> |
XMemcachedClient.getVersions() |
Map<InetSocketAddress,String> |
MemcachedClient.getVersions(long timeout) |
Map<InetSocketAddress,String> |
XMemcachedClient.getVersions(long timeout) |
long |
MemcachedClient.incr(String key,
long delta)
"incr" are used to change data for some item in-place, incrementing it.
|
long |
XMemcachedClient.incr(String key,
long delta) |
long |
MemcachedClient.incr(String key,
long delta,
long initValue) |
long |
XMemcachedClient.incr(String key,
long delta,
long initValue) |
long |
MemcachedClient.incr(String key,
long delta,
long initValue,
long timeout)
"incr" are used to change data for some item in-place, incrementing it.
|
long |
XMemcachedClient.incr(String key,
long delta,
long initValue,
long timeout) |
long |
MemcachedClient.incr(String key,
long delta,
long initValue,
long timeout,
int exp)
"incr" are used to change data for some item in-place, incrementing it.
|
long |
XMemcachedClient.incr(String key,
long delta,
long initValue,
long timeout,
int exp) |
long |
Counter.incrementAndGet()
Increase value by one
|
void |
MemcachedClient.incrWithNoReply(String key,
long delta)
"incr" are used to change data for some item in-place, incrementing it.
|
void |
XMemcachedClient.incrWithNoReply(String key,
long delta) |
void |
MemcachedClient.invalidateNamespace(String ns)
Invalidate all namespace under the namespace using the default operation timeout.
|
void |
XMemcachedClient.invalidateNamespace(String ns) |
void |
MemcachedClient.invalidateNamespace(String ns,
long opTimeout)
Invalidate all items under the namespace.
|
void |
XMemcachedClient.invalidateNamespace(String ns,
long opTimeout) |
String |
KeyIterator.next()
Deprecated.
Get next key,if iterator has reached the end,throw ArrayIndexOutOfBoundsException
|
boolean |
MemcachedClient.prepend(String key,
Object value) |
boolean |
XMemcachedClient.prepend(String key,
Object value) |
boolean |
MemcachedClient.prepend(String key,
Object value,
long timeout)
Prepend value to key's data item in memcached.This method doesn't wait for reply.
|
boolean |
XMemcachedClient.prepend(String key,
Object value,
long timeout) |
void |
MemcachedClient.prependWithNoReply(String key,
Object value)
Prepend value to key's data item in memcached.This method doesn't wait for reply.
|
void |
XMemcachedClient.prependWithNoReply(String key,
Object value) |
boolean |
MemcachedClient.replace(String key,
int exp,
Object value) |
boolean |
XMemcachedClient.replace(String key,
int exp,
Object value) |
boolean |
MemcachedClient.replace(String key,
int exp,
Object value,
long timeout) |
boolean |
XMemcachedClient.replace(String key,
int exp,
Object value,
long timeout) |
<T> boolean |
MemcachedClient.replace(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
XMemcachedClient.replace(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
MemcachedClient.replace(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.
|
<T> boolean |
XMemcachedClient.replace(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout) |
void |
MemcachedClient.replaceWithNoReply(String key,
int exp,
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.
|
void |
XMemcachedClient.replaceWithNoReply(String key,
int exp,
Object value) |
<T> void |
MemcachedClient.replaceWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> void |
XMemcachedClient.replaceWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder) |
protected Session |
XMemcachedClient.sendCommand(Command cmd) |
void |
Counter.set(long value)
Set counter's value to expected.
|
boolean |
MemcachedClient.set(String key,
int exp,
Object value) |
boolean |
XMemcachedClient.set(String key,
int exp,
Object value) |
boolean |
MemcachedClient.set(String key,
int exp,
Object value,
long timeout) |
boolean |
XMemcachedClient.set(String key,
int exp,
Object value,
long timeout) |
<T> boolean |
MemcachedClient.set(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
XMemcachedClient.set(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> boolean |
MemcachedClient.set(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
Store key-value item to memcached
|
<T> boolean |
XMemcachedClient.set(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout) |
void |
MemcachedClient.setLoggingLevelVerbosity(InetSocketAddress address,
int level)
Set the verbosity level of the memcached's logging output.This method will wait for reply.
|
void |
XMemcachedClient.setLoggingLevelVerbosity(InetSocketAddress address,
int level) |
void |
MemcachedClient.setLoggingLevelVerbosityWithNoReply(InetSocketAddress address,
int level)
Set the verbosity level of the memcached's logging output.This method doesn't wait for reply
from server
|
void |
XMemcachedClient.setLoggingLevelVerbosityWithNoReply(InetSocketAddress address,
int level) |
void |
MemcachedClient.setWithNoReply(String key,
int exp,
Object value)
Store key-value item to memcached,doesn't wait for reply
|
void |
XMemcachedClient.setWithNoReply(String key,
int exp,
Object value) |
<T> void |
MemcachedClient.setWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder) |
<T> void |
XMemcachedClient.setWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder) |
Map<String,String> |
MemcachedClient.stats(InetSocketAddress address) |
Map<String,String> |
XMemcachedClient.stats(InetSocketAddress address) |
Map<String,String> |
MemcachedClient.stats(InetSocketAddress address,
long timeout)
�ョ��瑰������emcached server缁��淇℃�
|
Map<String,String> |
XMemcachedClient.stats(InetSocketAddress address,
long timeout) |
boolean |
MemcachedClient.touch(String key,
int exp)
Set a new expiration time for an existing item,using default opTimeout second.
|
boolean |
XMemcachedClient.touch(String key,
int exp) |
boolean |
MemcachedClient.touch(String key,
int exp,
long opTimeout)
Set a new expiration time for an existing item
|
boolean |
XMemcachedClient.touch(String key,
int exp,
long opTimeout) |
<T> T |
MemcachedClient.withNamespace(String ns,
MemcachedClientCallable<T> callable)
With the namespae to do something with current memcached client.All operations with memcached
client done in callable will be under the namespace.
|
<T> T |
XMemcachedClient.withNamespace(String ns,
MemcachedClientCallable<T> callable) |
Modifier and Type | Method and Description |
---|---|
ClusterConfiguration |
AWSElasticCacheClient.getConfig()
Get cluster config from cache node by network command.
|
ClusterConfiguration |
AWSElasticCacheClient.getConfig(String key)
Get config by key from cache node by network command.
|
Modifier and Type | Class and Description |
---|---|
class |
MemcachedClientException
Memcached Client Exception
|
class |
MemcachedServerException
Memcached server exception
|
class |
NoValueException
Memcached Client Exception
|
Modifier and Type | Method and Description |
---|---|
String |
KeyIteratorImpl.next() |
Session |
MemcachedConnector.send(Command msg) |
Modifier and Type | Method and Description |
---|---|
Session |
Connector.send(Command packet) |
Copyright © 2021. All rights reserved.