Class BlobCache

java.lang.Object
convex.core.store.BlobCache

public final class BlobCache extends Object
In-memory cache for Blob decoding. Should be used in the context of a specific Store
  • Method Details

    • create

      public static BlobCache create(int size)
    • getCell

      public ACell getCell(ABlob encoding)
      Gets the Cached Cell for a given Blob Encoding, or null if not cached.
      Parameters:
      encoding - Encoding of Cell to look up in cache
      Returns:
      Cached Cell, or null if not found
    • putCell

      public void putCell(ACell cell)
      Stores a cell in the cache
      Parameters:
      cell - Cell to store