com.atlassian.jira.cache.SingleValueLocalCache<V> |
Convenience class that allows to store a single value in an internal cache.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | KEY |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets a cached value or creates new one (using the supplier) and puts it into the cache if value does not exist.
| |||||||||||
Creates single value cache wrapper over LocalCacheOperations.
| |||||||||||
Removes a cached value from the cache if it is cached.
|
Gets a cached value or creates new one (using the supplier) and puts it into the cache if value does not exist.
Creates single value cache wrapper over LocalCacheOperations.
cache | that would used as a backend. It should not be used directly by anything else. |
---|---|
supplier | used to generate the value, if one does not exist already for the key. The supplier may not
return null . |
SingleValueLocalCache
backed by a supplied cache.
Removes a cached value from the cache if it is cached.