K
- The key typeV
- The value typepublic static interface MarkupCache.ICache<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the cache
|
boolean |
containsKey(K key)
Check if key is in the cache
|
V |
get(K key)
Get the cache element associated with the key
|
Collection<K> |
getKeys()
Get all the keys referencing cache entries
|
Collection<V> |
getValues()
Get all the values referencing cache entries
|
void |
put(K key,
V value)
Put an entry into the cache
|
boolean |
remove(K key)
Remove an entry from the cache.
|
void |
shutdown()
Cleanup and shutdown
|
int |
size()
Get the number of cache entries
|
void clear()
boolean remove(K key)
key
- V get(K key)
key
- key
or null if no matchesCollection<K> getKeys()
Collection<V> getValues()
boolean containsKey(K key)
key
- key
int size()
void put(K key, V value)
key
- The reference key to find the element. Must not be null.value
- The element to be cached. Must not be null.void shutdown()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.