Skip to main content

ImageCache

Index

Interfaces

Interfaces

Options

Options<T>:

How an ImageCache turns bytes into a payload, and how it frees that payload.


Type parameters

  • T

decode

  • decode(blob): T | Promise<T>
  • Decode fetched bytes into the in-memory payload.


    Parameters

    • blob: Blob

    Returns T | Promise<T>

optionaldispose

  • dispose(data): void
  • Release a payload that is no longer stored.


    Parameters

    • data: T

    Returns void

Page Options