org.apache.solr.common.util

## Interface Cache<K,V>

- All Known Implementing Classes:
    MapBackedCache

      public interface Cache<K,V>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clear()`
    `default V` | `computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)`
    `V` | `get(K key)`
    `V` | `put(K key, V val)`
    `V` | `remove(K key)`

- - ### Method Detail

    - #### put

          V put(K key,
                V val)

    - #### get

          V get(K key)

    - #### remove

          V remove(K key)

    - #### clear

          void clear()

    - #### computeIfAbsent

          default V computeIfAbsent(K key,
                                    Function<? super K,? extends V> mappingFunction)

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.