Class BiIntKeyCache<E>

java.lang.Object
com.linkedin.venice.utils.collections.BiIntKeyCache<E>

public class BiIntKeyCache<E> extends Object
Read-through cache for items retrievable by two positive integer IDs. N.B.: This class uses a list of lists internally. Therefore, the memory footprint will be proportional to the highest integer ID used. As such, this class should only be used in cases where the range of valid IDs goes from zero to a low max.
  • Constructor Details

  • Method Details

    • get

      public E get(int firstId, int secondId)
      Returns:
      the element corresponding to the two int provided