vapor-chamber API reference - v1.3.0
    Preparing search index...

    Type Alias CacheOptions

    type CacheOptions = {
        ttl?: number;
        maxSize?: number;
        actions?: string[];
        key?: (cmd: Command) => string;
    }
    Index

    Properties

    ttl?: number

    Cache TTL in milliseconds. Default: 30_000 (30s).

    maxSize?: number

    Max entries in the cache. Default: 100. LRU eviction.

    actions?: string[]

    Which actions to cache. Glob patterns supported. Default: all.

    key?: (cmd: Command) => string

    Custom cache key. Default: commandKey(action, target).