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