towerstats.js
    Preparing search index...

    Type Alias CacheConfig

    Cache configuration.

    type CacheConfig = {
        autoStartSweeper: boolean;
        enabled: boolean;
        lifespan: number;
        sweeperInterval: number;
    }
    Index

    Properties

    autoStartSweeper: boolean

    Start the sweeper automatically. If false, you must start the sweeper manually using CacheManager.startSweeper(). Default is true

    enabled: boolean

    Whether the cache should be enabled or not. Default is true.

    lifespan: number

    Individual item lifespan in milliseconds. Default is 3 * 60 * 1000. (3 Minutes)

    sweeperInterval: number

    Sweeper interval in milliseconds. Default is 1000.