Package org.kie.internal.runtime.manager
Interface CacheManager
public interface CacheManager
Maintains a cache of various items that are long lived or expensive to be created
frequently so they can benefit from being cached.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a given value into the cache under given keyvoiddispose()Disposes cache and cleans up/closes its stored resources of applicableRetrieves item from a cache if existsRemoves the item from cache if exists
-
Method Details
-
add
Adds a given value into the cache under given key- Parameters:
key- unique key for the item to be storedvalue- actual value to be cached
-
get
Retrieves item from a cache if exists- Parameters:
key- key for the item in the cache- Returns:
- actual value if found otherwise null
-
remove
Removes the item from cache if exists- Parameters:
key- key for the item in the cache- Returns:
- actual value if found otherwise null
-
dispose
void dispose()Disposes cache and cleans up/closes its stored resources of applicable- See Also:
-