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
IOException
public static MemcachedImpl getInstance(boolean forceClientInit) throws IOException
IOException
public void initClient() throws IOException
IOException
public boolean safeDelete(String key)
safeDelete
in interface CacheImpl
public boolean safeReplace(String key, Object value, int expiration)
safeReplace
in interface CacheImpl
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly