Updated on 2024-04-25 GMT+08:00

Middleware: RedisGet

This system keyword is used for Redis character string operations to obtain the value of a specified key.

Parameter

Mandatory

Type

Description

Ip

Yes

String

IP address of the Redis database

Port

Yes

Integer

Redis database port

Password

Yes

String

Password (The login password is personal information and must be defined as sensitive in the environment parameters.)

Key

Yes

String

Specified key name

RedisGet Response

Status: success

Parameter

Type

Description

key

String

Value of the specified key

RedisGet Response Example

{
  "test" : "Redis"
}

RedisGet Usage Example

  • Obtain the value based on the entered key value.

    Check whether the result is successful and expected.

    If the key does not exist, the returned value is empty. You can determine it at the checkpoint.