Interface Cache<K,​V>


  • public interface Cache<K,​V>
    todo 异步功能支持
    • Method Detail

      • get

        V get​(K key)
      • containsKey

        boolean containsKey​(K key)
      • put

        void put​(K key,
                 V value)
      • put

        void put​(K key,
                 V value,
                 Duration expire)
      • remove

        void remove​(K key)
      • removeAll

        void removeAll​(Iterable<K> keys)
      • size

        long size()
      • supportNullKey

        boolean supportNullKey()
      • supportNullValue

        boolean supportNullValue()
      • hotKeyIterator

        Iterator<K> hotKeyIterator​(int n)
      • stats

        void stats​(io.micrometer.core.instrument.MeterRegistry registry)
        通过MeterBinder进行暴露
      • clear

        void clear()
      • destroy

        void destroy()