Class RedisMap<UseBuffer, R>

Redis implementation of an async queryable map.

Type Parameters

  • UseBuffer extends boolean = false

  • R extends RedisClientType = RedisClientType

Hierarchy

Implements

Constructors

  • Type Parameters

    • UseBuffer extends boolean = false

    • R extends RedisClientType = RedisClientType

    Parameters

    • client: R

      Redis client to use.

    • hashKey: string

      Key used to store the hash map.

    • rangeKey: string

      Key used to store the sorted set index.

    • Optional useBuffer: UseBuffer

      Whether to use buffers or strings as values.

    Returns RedisMap<UseBuffer, R>

Properties

client: R

Redis client to use.

hashKey: string

Key used to store the hash map.

rangeKey: string

Key used to store the sorted set index.

useBuffer?: UseBuffer

Whether to use buffers or strings as values.

Accessors

Methods

  • Returns Promise<void>

  • Deletes an entry by key from the map. Returns MaybePromise<unknown> to be compatible with ES Map.

    Parameters

    • key: string

    Returns Promise<boolean>

Generated using TypeDoc