@lacunahub/lavaluna.js
    Preparing search index...

    Class NodeManager

    Manages a cache of key-value pairs.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cache: WishMap<string, Node> = ...

    The underlying cache store.

    delete: (key: string) => boolean = ...

    Deletes an entry from the cache by key.

    Type Declaration

      • (key: string): boolean
      • Removes the specified element from the map.

        Parameters

        • key: string

        Returns boolean

        WishMap#delete

    find: (fn: (value: Node, key: string) => boolean) => Node = ...

    Finds a value in the cache matching the given predicate.

    Type Declaration

      • (fn: (value: Node, key: string) => boolean): Node
      • Returns the first value that passes the provided function.

        Parameters

        • fn: (value: Node, key: string) => boolean

          Function to test each entry

        Returns Node

    manager: Lavaluna

    Accessors

    Methods

    • Destroys a node with the given name.

      Parameters

      • name: string

        The name of the node to destroy.

      Returns Promise<boolean>

      A promise that resolves to true if the node is successfully destroyed, otherwise false.