Available since 1.0.0.

LSET key index element

Sets the list element at index to element. For more information on the index argument, see LINDEX.

unit-redisness-test follows the observed behavior of Redis - if the key does not exist then we return 'ERR no such key'

An error is returned for out of range indexes.

###Return value Simple string reply

Hierarchy

Constructors

Properties

DbDataType: DataType = DataType.LIST
blocking?: boolean
dataType?: DataType

Used for "database" commands to enforce type checking.

logger: Logger = ...
maxParams: number = 3

Maximum number of parameters allowed. -1 for no maximum.

minParams: number = 3

Minimum number of parameters require.

name: string = "lindex"
pubSubAllowed?: boolean

Used when PUB/SUB is in effect.

sign?: number

Sign is used in commands with a compliment command. The only current example is INCR/DECR. Sign is 1 for INCR and -1 for DECR

txIgnore?: boolean

Used in transactions to enqueue a command.

Methods