Class RedisSentinelClient<M, F, S, RESP, TYPE_MAPPING>

Type Parameters

Constructors

Properties

#private: any
_commandOptionsProxy: any
unwatch: (() => Promise<"OK">)

Type declaration

    • (): Promise<"OK">
    • Returns Promise<"OK">

watch: ((key) => Promise<"OK">)

Type declaration

Accessors

  • get commandOptions(): undefined | CommandOptions<TYPE_MAPPING>
  • Gets the command options configured for this client

    Returns undefined | CommandOptions<TYPE_MAPPING>

    The command options for this client or undefined if none were set

  • get isOpen(): boolean
  • Indicates if the client connection is open

    Returns boolean

    true if the client connection is open, false otherwise

  • get isReady(): boolean
  • Indicates if the client connection is ready to accept commands

    Returns boolean

    true if the client connection is ready, false otherwise

Methods

  • Returns Promise<"OK">

  • Parameters

    Returns Promise<"OK">

  • Internal

    f

    Parameters

    Returns Promise<unknown[]>

  • Internal

    Parameters

    Returns Promise<unknown[]>

  • Releases the client lease back to the pool

    After calling this method, the client instance should no longer be used as it will be returned to the client pool and may be given to other operations.

    Returns undefined | Promise<void>

    A promise that resolves when the client is ready to be reused, or undefined if the client was immediately ready

    Throws

    Error if the lease has already been released

Generated using TypeDoc