@isaacs/cached
    Preparing search index...

    Interface MapLike<K, V>

    Defaults to a normal Map if not provided, but anything with get/set/has/delete will work. For example: https://isaacs.github.io/node-lru-cache/

    interface MapLike<K, V> {
        clear: () => void;
        delete: (key: K) => boolean;
        get: (key: K) => V | undefined;
        has: (key: K) => boolean;
        set: (key: K, value: V) => MapLike<K, V>;
    }

    Type Parameters

    • K
    • V
    Index

    Properties

    Properties

    clear: () => void
    delete: (key: K) => boolean
    get: (key: K) => V | undefined
    has: (key: K) => boolean
    set: (key: K, value: V) => MapLike<K, V>