
class MemcacheClientWrapper extends AbstractMemcacheClientWrapper
| Constructor and Description |
|---|
MemcacheClientWrapper(net.rubyeye.xmemcached.MemcachedClient memcachedClient) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String key,
int exp,
Object value) |
<T> boolean |
add(String key,
int exp,
T value,
CacheTranscoder transcoder) |
long |
decr(String key,
int by) |
long |
decr(String key,
int by,
long def) |
boolean |
delete(String key) |
void |
flush() |
Object |
get(String key) |
<T> T |
get(String key,
CacheTranscoder transcoder) |
<T> T |
get(String key,
CacheTranscoder transcoder,
long timeout) |
Collection<SocketAddress> |
getAvailableServers() |
Map<String,Object> |
getBulk(Collection<String> keys) |
<T> Map<String,T> |
getBulk(Collection<String> keys,
CacheTranscoder transcoder) |
Object |
getNativeClient() |
CacheTranscoder |
getTranscoder() |
long |
incr(String key,
int by) |
long |
incr(String key,
int by,
long def) |
long |
incr(String key,
int by,
long def,
int expiration) |
boolean |
set(String key,
int exp,
Object value) |
<T> boolean |
set(String key,
int exp,
T value,
CacheTranscoder transcoder) |
void |
shutdown() |
deleteMemcacheClientWrapper(net.rubyeye.xmemcached.MemcachedClient memcachedClient)
public boolean add(String key, int exp, Object value) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic <T> boolean add(String key, int exp, T value, CacheTranscoder transcoder) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic long decr(String key, int by) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic long decr(String key, int by, long def) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic boolean delete(String key) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic void flush()
throws TimeoutException,
CacheException
TimeoutExceptionCacheExceptionpublic Object get(String key) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic <T> T get(String key, CacheTranscoder transcoder) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic <T> T get(String key, CacheTranscoder transcoder, long timeout) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic Collection<SocketAddress> getAvailableServers()
public Map<String,Object> getBulk(Collection<String> keys) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic <T> Map<String,T> getBulk(Collection<String> keys, CacheTranscoder transcoder) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic long incr(String key, int by) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic long incr(String key, int by, long def) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic long incr(String key, int by, long def, int expiration) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic boolean set(String key, int exp, Object value) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic <T> boolean set(String key, int exp, T value, CacheTranscoder transcoder) throws TimeoutException, CacheException
TimeoutExceptionCacheExceptionpublic void shutdown()
public CacheTranscoder getTranscoder()
public Object getNativeClient()
Copyright © 2019. All rights reserved.