@earth-app/collegedb
    Preparing search index...

    Interface CacheOptions

    Options for cached and invalidate.

    interface CacheOptions {
        fetchTimeoutMs?: number;
        kv?: KVStorage;
        ttl?: number;
    }
    Index
    fetchTimeoutMs?: number

    Milliseconds a fetch may run before every caller waiting on it rejects with CACHE_FETCH_TIMEOUT. The fetch is not cancelled; if it resolves later, its value is still stored. Omit to wait indefinitely.

    1.4.0

    KV store override; defaults to the store passed to initialize

    ttl?: number

    Time-to-live in seconds; omit or set <= 0 to cache without expiry