ChemPal Documentation - v1.6.0
    Preparing search index...

    Represents a single node in the doubly-linked list used by HttpLru. Each node holds a cached HTTP response keyed by its request hash, along with pointers to the previous and next nodes for O(1) reordering.

    LruNode

    interface LruNode {
    /** The request hash used as the cache lookup key */
    key: string;
    /** The cached HTTP response data */
    value: FetchDecoratorResponse;
    /** Pointer to the previous (more recently used) node, or `null` if this is the head */
    prev: LruNode | null;
    /** Pointer to the next (less recently used) node, or `null` if this is the tail */
    next: LruNode | null;
    }
    interface LruNode {
        key: string;
        value: FetchDecoratorResponse;
        prev: null | LruNode;
        next: null | LruNode;
    }
    Index

    Properties

    Properties

    key: string

    The request hash used as the cache lookup key

    The cached HTTP response data

    prev: null | LruNode

    Pointer to the previous (more recently used) node, or null if this is the head

    next: null | LruNode

    Pointer to the next (less recently used) node, or null if this is the tail