columna API reference - v0.4.1
    Preparing search index...

    Interface PersistCacheOptions

    interface PersistCacheOptions {
        maxBytes?: number;
        maxEntries?: number;
        maxPending?: number;
        now?: () => number;
        pendingTtlMs?: number;
        ttlMs?: number;
    }
    Index
    maxBytes?: number

    LRU cap on cached table bytes. Unset: the process MemoryPolicy's maxCacheBytes (default cache) / no cap.

    maxEntries?: number

    Cap on cached tables (default 256).

    maxPending?: number

    Cap on marked-but-not-yet-stored plans (default 1024). Each persist() records the plan's key; plans that are marked and never collected would otherwise accumulate for the life of the cache.

    now?: () => number

    Clock (tests). Default Date.now.

    pendingTtlMs?: number

    Marks older than this are forgotten (default: no expiry).

    ttlMs?: number

    Entries older than this are dropped on lookup and on every store (default: no expiry).