redis
A Redis connection lets the gateway read values that another program stores in a Redis database. redis: is a top-level key. It is not inside brownfieldDevices:. To use a Redis value, add a mapping entry with value: $redisGet("<connection>","<key>").
Example
redis:
- name: r1
endpoint: redis://localhost:6379
mapping:
- node: /ua:Objects/di:DeviceSet/own:MyObject/own:MyInt32
value: $redisGet("r1","MyInt32")
The value
redis: is a list. Each entry is a Redis connection.
A Redis connection
One Redis database that the gateway reads. A mapping entry uses its name.
| Key | What it does | Value | Required |
|---|---|---|---|
name | The name of the connection. A mapping entry uses it, for example r1. | text | yes |
endpoint | The address of the Redis database, for example redis://localhost:6379. | text | yes |