Package 

Interface DDCache

    • Method Summary

      Modifier and Type Method Description
      abstract V computeIfAbsent(K key, Function<K, out V> producer) Look up or create and store a value in the cache.
      abstract void clear() Clear the cache.
      abstract void visit(BiConsumer<K, V> consumer) Visits elements currently in the cache; for debugging/triage purposes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • computeIfAbsent

         abstract V computeIfAbsent(K key, Function<K, out V> producer)

        Look up or create and store a value in the cache.

        Parameters:
        key - the key to look up
        producer - how to create a cached value base on the key if the lookup fails
      • clear

         abstract void clear()

        Clear the cache.

      • visit

         abstract void visit(BiConsumer<K, V> consumer)

        Visits elements currently in the cache; for debugging/triage purposes.