zibri
    Preparing search index...

    Configuration of a cache store.

    type CacheStoreConfig = {
        maxBytes: number;
        maxEntries: number;
        removeOnOverflow: RemoveOnOverflowStrategy;
    }
    Index

    Properties

    maxBytes: number

    The maximum amount of bytes that this store can hold. Checks are done usually done using estimations, not exact numbers.

    maxEntries: number

    The maximum amount of entries that the store can hold.

    removeOnOverflow: RemoveOnOverflowStrategy

    How to handle caches that exceed their maxEntries or maxBytes.