Documentation
    Preparing search index...

    Class MediaCacheProxy

    A proxy layer that attempts to serve media files from a cache adapter before falling back to storage.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _ttl: number

    Methods

    • Fetches a media file, trying Cache first, and falling back to the StorageAdapter.

      Parameters

      Returns Promise<Buffer<ArrayBufferLike>>

      The file binary data as a Buffer