public enum NoCache extends Enum<NoCache> implements Cache
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String id,
Function<? super String,T> mappingFunction)
Returns the value associated with the given id.
|
void |
invalidateAll()
Invalidates all cache entries.
|
void |
put(String id,
Object value)
Adds or replaces a value in the cache.
|
static NoCache |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoCache INSTANCE
public static NoCache[] values()
for (NoCache c : NoCache.values()) System.out.println(c);
public static NoCache 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 void put(String id, Object value)
Cachepublic <T> T get(String id, Function<? super String,T> mappingFunction)
Cachenull is returned.public void invalidateAll()
CacheinvalidateAll in interface CacheCopyright © 2019 Flux Capacitor. All rights reserved.