public interface Cache
| 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.
|
void put(String id, Object value)
id - The object idvalue - The value to cache<T> T get(String id, Function<? super String,T> mappingFunction)
null is returned.T - the type of object to return from the cacheid - The object idmappingFunction - The function to compute a value if the cache is not in the cachevoid invalidateAll()
Copyright © 2019 Flux Capacitor. All rights reserved.