@ptkl/sdk - v1.18.0
    Preparing search index...

    Type Alias ThunderReadOptions

    type ThunderReadOptions = {
        cacheTTL?: number;
        only?: string[];
    }
    Index

    Properties

    Properties

    cacheTTL?: number

    Maximum age, in seconds, of a cached response you are willing to accept.

    • omitted — serve whatever is cached, regardless of age (Thunder's historical behaviour, and still the cheapest read)
    • 0 — skip the cache and read from the database
    • > 0 — serve a cached response only if it is younger than this many seconds, otherwise refresh from the database

    Not clamped: 1 and 86400 are both honoured.

    Note this differs from the component read option of the same name, where an omitted value behaves like 0 and the value is clamped to 5-300s.

    only?: string[]