| Modifier and Type | Method and Description |
|---|---|
static void |
evict(java.lang.String key) |
static <T> T |
get(java.lang.String key) |
static void |
put(java.lang.String key,
java.lang.Object value) |
static void |
put(java.lang.String key,
java.lang.Object value,
int ttl) |
static void |
shutdown() |
static void |
startup() |
static Cache |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Cache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Cache[] values()
for (Cache c : Cache.values()) System.out.println(c);
public static Cache valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static void startup()
public static void shutdown()
public static void put(java.lang.String key,
java.lang.Object value,
int ttl)
public static void put(java.lang.String key,
java.lang.Object value)
public static <T> T get(java.lang.String key)
public static void evict(java.lang.String key)
Copyright © 2016. All Rights Reserved.