java.lang.Object | ||
↳ | org.apache.archiva.redback.components.cache.AbstractCache<V, T> | |
↳ | org.apache.archiva.redback.components.cache.impl.NoCacheCache<V, T> |
Simple no-op provider of a Cache.
Nothing is stored, nothing is tracked, no statistics even.Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear the cache of all entries.
| |||||||||||
Get the value of the specified key, if it exists in the cache.
| |||||||||||
Obtain a set of Statistics about the performance of the cache.
| |||||||||||
Tests to see if the provided key exists within the cache.
| |||||||||||
Put the specified value into the cache under the provided key.
| |||||||||||
Register the specified value into the cache under the provided key.
| |||||||||||
Remove the specified key and value from the cache.
|
[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
|
Clear the cache of all entries.
Get the value of the specified key, if it exists in the cache.
key | the key to fetch the contents of. |
---|
Obtain a set of Statistics about the performance of the cache.
Tests to see if the provided key exists within the cache.
NOTE: Due to synchronization issues, if this method returns true, a subsequent request to theget(Object)
method on the same key might return null as the period of time
between the 2 request might have been long enough for the underlying Cache implementation
to remove the key.key | the key to test. |
---|
Put the specified value into the cache under the provided key.
key | the key to put the value into |
---|---|
value | the object to place into the cache. |
Register the specified value into the cache under the provided key.
Thisregister(Object, Object)
method is just an optimized version of the put(Object, Object)
method, but does not return the previous value contained with the specified key.key | the key to put the value into |
---|---|
value | the object to place into the cache. |
Remove the specified key and value from the cache.
key | the key to the value to remove. |
---|