Skip to main content

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.

KeyWhat it doesValueRequired
nameThe name of the connection. A mapping entry uses it, for example r1.textyes
endpointThe address of the Redis database, for example redis://localhost:6379.textyes