Represents a connection to a redis database.

Implements

Constructors

Properties

Methods

Constructors

Properties

_client: RedisClientType

Methods

  • Deletes a key in the database or deletes all keys in the database.

    Parameters

    • Optional key: string

      The key to delete. If this is undefined, then all keys should be deleted.

    Returns Promise<void>

  • Gets the value of a specific key in the database.

    Type Parameters

    • T

    Parameters

    • key: string

      The key to retrieve.

    • Optional fallback: T

    Returns Promise<null | T>

    The value of the given key, null if no such value exists and no fallback was provided.

Generated using TypeDoc