public interface Cache
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the complete cache by invalidating all entries
|
<T> T |
get(String key)
Retrieves an object from the caches and converts it to
a given class
|
ConcurrentMap<String,Object> |
getAll() |
Map<String,Object> |
getStats()
Retrieves the cache statistics
|
void |
put(String key,
Object value)
Adds a value to cache with a given key overwriting and existing value
|
void |
putAll(Map<String,Object> map)
Adds a complete map of objects to the cache
|
void |
remove(String key)
Removes a value with a given key from the cache
|
long |
size()
Returns the size (number of elements) of cached values
|
void put(String key, Object value)
key - The key for the cached valuevalue - The value to storevoid remove(String key)
key - The key for the cached valuelong size()
void clear()
<T> T get(String key)
T - JavaDoc requires this (just ignore it)key - The key for the cached valuevoid putAll(Map<String,Object> map)
map - The map to addConcurrentMap<String,Object> getAll()
Copyright © 2016. All rights reserved.