Redis
Export Configuration#
Exporting a Redis service via a Tranquil Data peer extends the configuration object with the following fields:
| Field Name | Type | Required | Default |
|---|---|---|---|
| endpoint | string | defaultServiceHost:6379 |
|
| password | string |
The value of type must be redis.
The value of endpoint is a string of the form HOST:PORT, where the value for PORT is 6379 if absent.
The optional value of password indicates the plain-text password to be used for authentication. If unused, no authentication is done. If a password is provided, users will need to provide the command AUTH_PASSWORD with the correct password before data access is granted.
Context Interaction#
Tranquil Data supports Redis through the RESP wire protocol. Context is formed by using objects that are of a well-known data format. Currently, Tranquil Data only supports JSON documents in Redis.
Sessions are mapped either to a single command or to a single Transaction (for multiple commands). If a policy is unsatisfied during the course of a Transaction then the entire Transaction will be discarded. In that case, it will return an array of results, each of which is the failing event for the command.
Tranquil Data supports context formation and policy evaluation in Redis for:
DISCARDEXECGETMULTISET