ChemPal Documentation - v1.7.0
    Preparing search index...

    Type Alias CacheSettings

    Query-cache config: whether caching is on, empty-result handling, and TTL.

    type CacheSettings = {
        enabled?: boolean;
        doNotCacheEmptyResults?: boolean;
        ttlMinutes?: number;
    }
    Index

    Properties

    enabled?: boolean

    Master switch; caching is on unless explicitly false.

    doNotCacheEmptyResults?: boolean

    When true, zero-result queries are not cached.

    ttlMinutes?: number

    Max age of a cache entry in minutes; 0 disables TTL expiration.