Neutrome SDK reference
    Preparing search index...

    Type Alias Cache

    Key-value store handed to executors through RuntimeContext.cache.

    type Cache = {
        delete(key: string): Promise<void>;
        get(key: string): Promise<string | null>;
        put(key: string, value: string, options?: CachePutOptions): Promise<void>;
    }
    Index
    • Removes a key.

      Parameters

      • key: string

      Returns Promise<void>

    • Reads a value, or null when the key is unset.

      Parameters

      • key: string

      Returns Promise<string | null>

    • Writes a value, optionally with an expiry.

      Parameters

      Returns Promise<void>