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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `add​(java.lang.String key, java.lang.Object value)` | Adds a given value into the cache under given key
    `void` | `dispose()` | Disposes cache and cleans up/closes its stored resources of applicable
    `java.lang.Object` | `get​(java.lang.String key)` | Retrieves item from a cache if exists
    `java.lang.Object` | `remove​(java.lang.String key)` | Removes the item from cache if exists

- - ### Method Detail

    - #### add

          void add​(java.lang.String key,
                   java.lang.Object value)

      Adds a given value into the cache under given key
      Parameters:
        `key` - unique key for the item to be stored
        `value` - actual value to be cached

    - #### get

          java.lang.Object get​(java.lang.String key)

      Retrieves item from a cache if exists
      Parameters:
        `key` - key for the item in the cache
      Returns:
        actual value if found otherwise null

    - #### remove

          java.lang.Object remove​(java.lang.String key)

      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:
        `for details`