@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Interface BatchPreviewOptions

    Options for batch preview generation

    interface BatchPreviewOptions {
        cacheTtl?: number;
        skipCache?: boolean;
        cacheBackend?: PreviewCacheBackend;
    }
    Index

    Properties

    cacheTtl?: number

    Cache TTL in milliseconds (defaults to 1 hour)

    skipCache?: boolean

    Whether to skip cache and force fresh previews (defaults to false)

    cacheBackend?: PreviewCacheBackend

    Cache backend for preview results.

    The default backend is process-local memory. It is safe for tests, local development, and single-process CLIs, but it is not shared across pods and does not survive restarts. Production services that cache preview URLs should provide a shared backend such as Redis or Postgres, and the cached URL itself must still resolve to durable storage rather than process-local assets.