Redis
The Redis Connector integrates with Swimlane Turbine to get and set the key values in Redis Platform.
Prerequisites
This connector requires the below parameters to authenticate:
- Host - Hostname or IP of Redis server
- Port (Default is 6379)
- Database - Database number to use (Default: 0)
- Password - If Redis requires authentication.
- Socket Timeout
- Socket Connect Timeout
- Socket Keep Alive
- Socket Keep Alive Options
- Unix Socket Path
- Encoding
- Encoding Errors
- Retry On Timeout
- Decode Responses
- Retry On Error
- SSL ... and so on
Capabilities
This connector provides the following capabilities:
- Get - Get a key
- Set - Set a key
Notes
Configurations
Asset
Authenticates Redis using Host, Port and Database.
Configuration Parameters
Parameter | Description | Type | Required |
|---|---|---|---|
host | Hostname or IP address of the Redis instance | string | Required |
port | Redis Port | number | Required |
database | Database number to use | number | Required |
password | Password if authentication required | string | Optional |
socket_timeout | Socket Timeout | number | Optional |
socket_connect_timeout | Socket Connect Timeout | number | Optional |
socket_keepalive | Socket Keep Alive | boolean | Optional |
socket_keepalive_options | Socket Keep Alive Options | array | Optional |
unix_socket_path | Unix Socket Path | string | Optional |
encoding | Encoding | string | Optional |
encoding_errors | Encoding Errors | string | Optional |
retry_on_timeout | Retry on Timeout | boolean | Optional |
decode_responses | Decode Responses | boolean | Optional |
retry_on_error | Retry On Error | array | Optional |
ssl | SSL | boolean | Optional |
ssl_keyfile | SSL Key File | string | Optional |
ssl_certfile | SSL Certfile | string | Optional |
ssl_cert_reqs | SSL Cert Reqs | string | Optional |
ssl_ca_certs | SSL CA Certs | string | Optional |
ssl_ca_path | SSL CA Path | string | Optional |
ssl_ca_data | SSL CA Data | string | Optional |
ssl_check_hostname | SSL Check Hostname | boolean | Optional |
ssl_password | SSL Password | string | Optional |
ssl_validate_ocsp | SSL Validate OCSP | boolean | Optional |
ssl_ocsp_context | SSL OCSP Context | string | Optional |
ssl_ocsp_expected_cert | SSL OCSP Expected Cert | string | Optional |
max_connections | Max Connections | number | Optional |
single_connection_client | Single Connection Client | boolean | Optional |
health_check_interval | Health Check Interval | number | Optional |
client_name | Client Name | string | Optional |
lib_name | Lib Name | string | Optional |
lib_version | Lib Version | string | Optional |
cache_enabled | Cache Enabled | boolean | Optional |
cache_max_size | Cache Max Size | number | Optional |
cache_ttl | Cache TTL | number | Optional |
cache_policy | Cache Poicy | string | Optional |
cache_blacklist | Cache Blacklist | array | Optional |
cache_whitelist | Cache Whitelist | array | Optional |
verify_ssl | Verify SSL certificate | boolean | Optional |
http_proxy | A proxy to route requests through. | string | Optional |
Actions
Get
Return the value at key name, or None if the key doesnβt exist.
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
key | string | Required | Parameter for Get |
Input Example
{"key":"string"}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response |
status | string | Status value |
Output Example
{"status_code":200,"status":"OK","response_headers":{},"json_body":{}}
Set
Set the value at key name to value.
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
key | string | Optional | Parameter for Set |
value | string | Optional | Value for the parameter |
ex | number | Optional | Set the specified expire time, in seconds |
px | number | Optional | Set the specified expire time, in milliseconds |
nx | boolean | Optional | Only set the key if it does not already exist. |
xx | boolean | Optional | Only set the key if it already exists. |
keepttl | boolean | Optional | Keep Time to Live |
get | boolean | Optional | if True, set the value at key name to value and return the old value stored at key, or None if the key did not exist. |
exat | array | Optional | sets an expire flag on key name for ex seconds, specified in unix time. |
pxat | array | Optional | sets an expire flag on key name for ex milliseconds, specified in unix time. |
Input Example
{"ex":0,"px":0,"nx":false,"xx":false}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response |
status | string | Status value |
Output Example
{"status_code":200,"status":"OK","response_headers":{},"json_body":{}}
Response Headers
Header | Description | Example |
|---|---|---|
Content-Type | The media type of the resource | application/json |
Date | The date and time at which the message was originated | Thu, 01 Jan 2024 00:00:00 GMT |