Interface CacheManager<T>
- Type Parameters:
T- type of value
Deprecated.
use a local cache instead
CacheManager interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.clear plugins cachebooleanDeprecated.Clear plugins cache.Deprecated.Returns a populated #Optionalif the value exists, otherwise Optional.empty().Deprecated.Get or load a value by supplying a key, value, and function.Deprecated.Get or load a value by supplying a key and function.voidDeprecated.Initialize cache for pluginTypeinvalidate(String key) Deprecated.Invalidates, or removes the associated cache entry.Deprecated.Populate a cache with value.
-
Method Details
-
init
Deprecated.Initialize cache for pluginType- Parameters:
pluginType- pluginType
-
get
Deprecated.Returns a populated #Optionalif the value exists, otherwise Optional.empty().- Parameters:
key- key- Returns:
- The return value.
-
put
Deprecated.Populate a cache with value.- Parameters:
key- keyvalue- value- Returns:
- The return value is previous value.
-
get
Deprecated.Get or load a value by supplying a key and function. The function is provided an #Optional, representing the existing value, if any.- Parameters:
key- keyloader- loader- Returns:
- existing or new value
-
get
Deprecated.Get or load a value by supplying a key, value, and function. The bi function can access existing value and produce new value from it.- Parameters:
key- keyloader- bi function loader- Returns:
- null if key is not present, otherwise return new value
-
invalidate
Deprecated.Invalidates, or removes the associated cache entry.- Parameters:
key- key- Returns:
- Returns a populated #
Optionalif the entry existed, otherwise Optional.empty().
-
contains
Deprecated.Clear plugins cache.- Parameters:
key- key- Returns:
- boolean value indicating whether cache contains key or not
-
clear
void clear()Deprecated.clear plugins cache
-