Class CoverCache

java.lang.Object
lol.trq.orpheus.cover.CoverCache

public final class CoverCache extends Object
Decoded covers, least recently used first out, bounded by pixel bytes. Thread-safe.
  • Constructor Details

    • CoverCache

      public CoverCache(long maxBytes)
  • Method Details

    • get

      public Cover get(String key)
    • put

      public void put(Cover cover)
      Stores a cover. One that is larger than the whole cache is not kept.
    • bytes

      public long bytes()
    • size

      public int size()