@supuwoerc/toolkit
    Preparing search index...

    Class LRUCacheNode<K, V>

    LRU缓存节点类,继承自双向链表节点 LRU Cache Node class, extends DoublyLinkedListNode

    Type Parameters

    • K extends keyof any

      键的类型,必须是对象键类型(string | number | symbol) Type of key, must be object key type (string | number | symbol)

    • V

      值的类型 Type of value

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • K extends string | number | symbol

        键的类型,必须是对象键类型(string | number | symbol) Type of key, must be object key type (string | number | symbol)

      • V

        值的类型 Type of value

      Parameters

      • key: K
      • value: V

      Returns LRUCacheNode<K, V>

    Properties

    key: K

    缓存节点的键,用于在哈希表中快速查找 Key of the cache node, used for quick lookup in hash table

    指向链表中后一个节点的引用

    指向链表中前一个节点的引用

    value: V

    节点存储的值