Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • K

  • V

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly client

Readonly name

name: string

The name of the pool

Readonly size

size: number

Readonly type

type: unknown

The class type the pool holds

Methods

clear

  • clear(): void
  • Returns void

delete

  • delete(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

forEach

  • forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: V, key: K, map: Map<K, V>) => void
        • (value: V, key: K, map: Map<K, V>): void
        • Parameters

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(key: K): V | undefined
  • Parameters

    • key: K

    Returns V | undefined

has

  • has(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

init

  • init(): Promise<boolean>

load

  • load(filePath: string): Promise<boolean>

set

  • set(key: K, value: V): this
  • Parameters

    • key: K
    • value: V

    Returns this

Generated using TypeDoc