| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
Object value,
int expiration) |
void |
clear() |
long |
decr(String key,
int by) |
void |
delete(String key) |
Object |
get(String key) |
Map<String,Object> |
get(String[] keys) |
static MemcachedImpl |
getInstance() |
static MemcachedImpl |
getInstance(boolean forceClientInit) |
long |
incr(String key,
int by) |
void |
initClient() |
void |
replace(String key,
Object value,
int expiration) |
boolean |
safeAdd(String key,
Object value,
int expiration) |
boolean |
safeDelete(String key) |
boolean |
safeReplace(String key,
Object value,
int expiration) |
boolean |
safeSet(String key,
Object value,
int expiration) |
void |
set(String key,
Object value,
int expiration) |
void |
stop() |
public static MemcachedImpl getInstance() throws IOException
IOExceptionpublic static MemcachedImpl getInstance(boolean forceClientInit) throws IOException
IOExceptionpublic void initClient()
throws IOException
IOExceptionpublic boolean safeDelete(String key)
safeDelete in interface CacheImplpublic boolean safeReplace(String key, Object value, int expiration)
safeReplace in interface CacheImplGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly