@cpod/sdk - v0.2.7
    Preparing search index...

    Interface FetchAndStoreOptions

    Fetch and store options

    interface FetchAndStoreOptions {
        key?: string;
        ttl?: number;
        force?: boolean;
        method?: "GET" | "POST";
        headers?: Record<string, string>;
        body?: unknown;
        namespace?: "common" | "temp";
    }
    Index

    Properties

    key?: string

    Cache key (defaults to URL)

    ttl?: number

    Time-to-live in seconds

    force?: boolean

    Force refresh even if cached

    method?: "GET" | "POST"

    HTTP method

    headers?: Record<string, string>

    Request headers

    body?: unknown

    Request body for POST

    namespace?: "common" | "temp"

    Storage namespace