Script Development / Redis
The Redis connector operation object mainly provides operation methods for Redis.
The parameters for DFF.CONN(...)
are as follows:
Parameter | Type | Required / Default Value | Description |
---|---|---|---|
connector_id |
str | Required | Connector ID |
database |
str | None |
Specify database |
.query(...)
Executes a Redis command. The parameters are as follows:
Parameter | Type | Required / Default Value | Description |
---|---|---|---|
*args |
[str] | Required | Redis command and parameters |
Example | |
---|---|
1 2 3 |
|
Redis returns values of type bytes. During actual operations, you can perform type conversions as needed.
Python | |
---|---|
1 2 3 4 5 6 7 8 |
|