telegramsjs
    Preparing search index...

    Interface ICachedOptions<T>

    interface ICachedOptions<T> {
        cacheFilter?: (holds: T) => boolean;
        cacheSize?: number;
    }

    Type Parameters

    • T
    Index

    Properties

    cacheFilter?: (holds: T) => boolean

    Optional filter function to determine if an item should be cached. Returns true to cache the item, false otherwise.

    cacheSize?: number

    Optional maximum cache size. If not set, the cache is unlimited.