T
- public interface DistributedCacheClient<T>
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TIMEOUT
The Constant DEFAULT_TIMEOUT.
|
static String |
MEMCACHED
The Constant MEMCACHED.
|
static String |
REDIS
The Constant REDIS.
|
Modifier and Type | Method and Description |
---|---|
long |
decr(String key) |
long |
decr(String key,
int deta) |
boolean |
delete(String key) |
void |
disconnect()
Disconnect.
|
void |
flushAll()
Delete all the keys from all the servers.
|
T |
get(String key) |
Map<String,T> |
getBulk(Collection<String> keys)
Gets the bulk.
|
Map<String,T> |
getBulk(String... keys)
Gets the bulk.
|
long |
incr(String key) |
long |
incr(String key,
int deta) |
String |
serverUrl() |
boolean |
set(String key,
T obj,
long liveTime) |
static final long DEFAULT_TIMEOUT
static final String MEMCACHED
static final String REDIS
String serverUrl()
Map<String,T> getBulk(Collection<String> keys)
keys
- boolean set(String key, T obj, long liveTime)
key
- obj
- liveTime
- boolean delete(String key)
key
- long incr(String key)
key
- long incr(String key, int deta)
key
- deta
- long decr(String key)
key
- long decr(String key, int deta)
key
- deta
- void flushAll()
void disconnect()
Copyright © 2019. All rights reserved.