@stephen-shopopop/cache
    Preparing search index...

    Interface LRUCacheWithTTLOptions

    Options for configuring an LRU cache with Time-To-Live (TTL) functionality

    interface LRUCacheWithTTLOptions {
        cleanupInterval?: number;
        maxSize?: number;
        stayAlive?: boolean;
        ttl?: number;
    }
    Index

    Properties

    cleanupInterval?: number

    Interval in milliseconds between cleanup of expired entries - Default value is 60000ms (1 minute)

    maxSize?: number

    The maximum number of entries that can be stored in the cache. Default is 1024.

    stayAlive?: boolean

    If true, prevents the cache from being destroyed when empty

    ttl?: number

    Time-to-live in milliseconds for cache entries