public enum Cache extends Enum<Cache>
The Cache service static facade which delegate the operations to the default cache service created by auto discovered cache service factory
| Modifier and Type | Method and Description |
|---|---|
static void |
evict(String key) |
static <T> T |
get(String key) |
static void |
put(String key,
Object value) |
static void |
put(String key,
Object value,
int ttl) |
static void |
shutdown() |
static void |
startup() |
static Cache |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void startup()
public static void shutdown()
public static <T> T get(String key)
public static void evict(String key)
Copyright © 2017 OSGL (Open Source General Library). All rights reserved.