java.lang.Object | ||
↳ | org.apache.archiva.redback.components.cache.AbstractCache<V, T> | |
↳ | org.apache.archiva.redback.components.cache.hashmap.HashMapCache<V, T> |
HashMapCache - this is a Cache implementation taken from the Archiva project.
Original class written by Edwin Punzalan for purposes of addressing the jira ticket MRM-39
Configure the refreshTime in seconds value configure a ttl of object life in cache. Object get( Object key ) :
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Empty the cache and reset the cache hit rate
| |||||||||||
Check for a cached object and return it if it exists.
| |||||||||||
Obtain a set of Statistics about the performance of the cache.
| |||||||||||
Check if the specified key is already mapped to an object.
| |||||||||||
Cache the given value and map it using the given key
| |||||||||||
Cache the given value and map it using the given key
| |||||||||||
Remove the specified key and value from the cache.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.archiva.redback.components.cache.AbstractCache
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.archiva.redback.components.cache.Cache
|
Empty the cache and reset the cache hit rate
Check for a cached object and return it if it exists. Returns null when the keyed object is not found
key | the key used to map the cached object |
---|
Obtain a set of Statistics about the performance of the cache.
Check if the specified key is already mapped to an object.
key | the key used to map the cached object |
---|
Cache the given value and map it using the given key
key | the object to map the valued object |
---|---|
value | the object to cache |
Cache the given value and map it using the given key
key | the object to map the valued object |
---|---|
value | the object to cache |
Remove the specified key and value from the cache.
key | the key to the value to remove. |
---|