# new RedisClient (connSettingsobject)

Arguments:
  • connSettings: object
    • host='127.0.0.1'string

    • port='6379'string

    • dbIndexnumber

      Active database index. See https://redis.io/commands/select/

    • reconnectTimeout=30000number

    • password=''string

      For UB server > 5.24.23

    • username=''string

      For UB server > 5.24.23

Methods

# commands (argsstring) → null | string | number | Array.<(string | Array.<string>)> instance

Send a series of commands and return a redis response. Depending on command response can be a string, integer, array of <string|array>

For blocking operations with timeout reached returns null. Throw in case of protocol level error or connection lost and reconnect fails in connSettings.reconnectTimeout ms.

Arguments: