Script Development / Redis
The Redis Connector operation object mainly provides methods for Redis operations.
DFF.CONN(...)
parameters are as follows:
Parameter | Type | Required / Default | Description |
---|---|---|---|
connector_id |
str | Required | Connector ID |
database |
str | None |
Specify database |
.query(...)
Execute Redis commands, parameters are as follows:
Parameter | Type | Required / Default | Description |
---|---|---|---|
*args |
[str] | Required | Redis command and parameters |
Example | |
---|---|
1 2 3 |
|
The value returned by Redis is of type bytes. In actual operations, type conversion can be performed as needed.
Python | |
---|---|
1 2 3 4 5 6 7 8 |
|