@Deprecated
public class Cache
extends java.lang.Object
Constructor and Description |
---|
Cache()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
get(java.lang.String key)
Deprecated.
Please use non-static cacheApi.get(key), deprecated since 2.5.0
|
static <T> T |
getOrElse(java.lang.String key,
java.util.concurrent.Callable<T> block,
int expiration)
Deprecated.
Please use non-static cacheApi.getOrElse, deprecated since 2.5.0
|
static void |
remove(java.lang.String key)
Deprecated.
Please use non-static cacheApi.set(key,value,expiration), deprecated since 2.5.0
|
static void |
set(java.lang.String key,
java.lang.Object value)
Deprecated.
|
static void |
set(java.lang.String key,
java.lang.Object value,
int expiration)
Deprecated.
Please use non-static cacheApi.set(key,value,expiration), deprecated since 2.5.0
|
@Deprecated public static java.lang.Object get(java.lang.String key)
key
- the cache key@Deprecated public static <T> T getOrElse(java.lang.String key, java.util.concurrent.Callable<T> block, int expiration)
T
- the type of object being queriedkey
- Item key.block
- block returning value to set if key does not existexpiration
- expiration period in seconds.@Deprecated public static void set(java.lang.String key, java.lang.Object value, int expiration)
key
- the key to setvalue
- the value to setexpiration
- expiration in seconds@Deprecated public static void set(java.lang.String key, java.lang.Object value)
key
- the key to setvalue
- the value to set@Deprecated public static void remove(java.lang.String key)
key
- the key whose entry to remove