public enum ScriptOutputType extends Enum<ScriptOutputType>
BOOLEAN
booleanINTEGER
64-bit integerSTATUS
status stringVALUE
valueMULTI
of these typesOBJECT
result object defined by the RESP3 responseok
field containing the statuserr
field containing the errornull
inside the Lua array if any)ok
field -> Redis status replyerr
field -> Redis error replyEnum Constant and Description |
---|
BOOLEAN
Boolean output (expects a number
0 or 1 to be converted to a boolean value). |
INTEGER
integer output. |
MULTI
List of flat arrays.
|
OBJECT
RESP3-defined object output supporting all Redis response structures.
|
STATUS
Simple status value such as
OK . |
VALUE
Value return type decoded through
RedisCodec.decodeValue(ByteBuffer) . |
Modifier and Type | Method and Description |
---|---|
static ScriptOutputType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScriptOutputType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScriptOutputType BOOLEAN
0
or 1
to be converted to a boolean value).public static final ScriptOutputType INTEGER
integer
output.public static final ScriptOutputType MULTI
public static final ScriptOutputType STATUS
OK
. The Redis response is parsed as ASCII.public static final ScriptOutputType VALUE
RedisCodec.decodeValue(ByteBuffer)
.public static final ScriptOutputType OBJECT
public static ScriptOutputType[] values()
for (ScriptOutputType c : ScriptOutputType.values()) System.out.println(c);
public static ScriptOutputType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023 lettuce.io. All rights reserved.