Optional ReadonlyerrorThe error message when the server replied with an error (- or !), otherwise undefined.
ReadonlyisWhether the reply is a null (RESP3 _, or the RESP2 $-1 / *-1 forms).
ReadonlyrawThe decoded RESP value, exactly as the server sent it.
ReadonlyvalueThe reply projected onto plain JavaScript.
Wraps each element of an aggregate reply (array, set, push, or a map flattened to key-value pairs) as its own RedisReply.
The element replies.
Decodes the reply as UTF-8 then parses it as JSON.
The expected shape of the decoded value.
The parsed value.
Decodes the reply as text: simple and bulk strings verbatim, numbers stringified, null as the empty string (check RedisReply.isNull to tell them apart).
The reply as a string.
A single reply with accessors for the shapes callers actually want.
rawis always the faithful RespValue; the accessors sit on top of it. Every accessor except RedisReply.error and RedisReply.raw throws when the reply is an error, so a failed command in a RedisSession.pipeline batch can never be read as data by accident.Since
1.0.6