Norway Open Data SDK
    Preparing search index...

    Type Alias CacheConfig

    Configuration for the SDK's optional memory cache.

    type CacheConfig = {
        enabled?: boolean;
        maxEntries?: number;
        ttlMs?: number;
    }
    Index
    enabled?: boolean

    Enables the cache. Defaults to false.

    maxEntries?: number

    Maximum number of cache entries. Defaults to 100.

    ttlMs?: number

    Overrides provider-recommended TTL values globally.