Interface ICache<K,V>

All Known Implementing Classes:
Cache

public interface ICache<K,V>
缓存接口
Version:
0.0.1
Author:
scx567888
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
     
    get(K key)
     
    put(K key, V value)
     
    remove(K key)
     
  • Method Details

    • get

      V get(K key)
    • put

      V put(K key, V value)
    • remove

      V remove(K key)
    • clear

      void clear()
    • computeIfAbsent

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