Package 

Class DDCaches

    • Method Summary

      Modifier and Type Method Description
      static <K, V> DDCache<K, V> newFixedSizeCache(int capacity) Creates a cache which cannot grow beyond a fixed capacity.
      static <K, V> DDPartialKeyCache<K, V> newFixedSizePartialKeyCache(int capacity)
      • Methods inherited from class java.lang.Object

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

      • newFixedSizeCache

         static <K, V> DDCache<K, V> newFixedSizeCache(int capacity)

        Creates a cache which cannot grow beyond a fixed capacity. Useful for caching relationshipsbetween low cardinality but potentially unbounded keys with values, without risking usingunbounded space.

        Parameters:
        capacity - the cache's fixed capacity