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

    Class PlayerManager

    Manages a cache of key-value pairs.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

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

    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: Player, key: string) => boolean) => Player = ...

    Finds a value in the cache matching the given predicate.

    Type Declaration

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

        Parameters

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

          Function to test each entry

        Returns Player

    node: Node

    Methods