public class EhCacheImpl extends java.lang.Object implements CacheImpl
Ehcache is an open source, standards-based cache used to boost performance, offload the database and simplify scalability. Ehcache is robust, proven and full-featured and this has made it the most widely-used Java-based cache.
Expiration is specified in secondsModifier 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 EhCacheImpl |
getInstance() |
long |
incr(java.lang.String key,
int by) |
static EhCacheImpl |
newInstance() |
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 EhCacheImpl getInstance()
public static EhCacheImpl newInstance()
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