2021-11-18 12:10:36 +01:00
|
|
|
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
2022-04-05 12:41:19 +02:00
|
|
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2022-01-10 17:52:36 +01:00
|
|
|
---
|
2021-11-18 12:10:36 +01:00
|
|
|
allOf:
|
|
|
|
- type: object
|
|
|
|
properties:
|
2022-04-05 12:41:19 +02:00
|
|
|
mode:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- key
|
|
|
|
- hash
|
|
|
|
- channel
|
|
|
|
default: key
|
|
|
|
description: |
|
|
|
|
- `key`: [Get](https://redis.io/commands/get)/[Set](https://redis.io/commands/set) of [Redis strings](https://redis.io/topics/data-types#strings)
|
|
|
|
- The implementation uses the Redis `MSET` and `MGET` commands.
|
|
|
|
- `hash`: Hashtables using [hash data-type](https://redis.io/topics/data-types#hashes)
|
|
|
|
- The implementation uses the Redis `HMSET` and `HGETALL` commands.
|
|
|
|
- `channel`: [Publish/subscribe](https://redis.io/topics/pubsub)
|
|
|
|
- The implementation uses the Redis `PUBLISH` and `SUBSCRIBE` commands.
|
|
|
|
|
|
|
|
uri:
|
|
|
|
type: string
|
|
|
|
format: uri
|
|
|
|
description: |
|
|
|
|
A Redis connection URI in the form of: `redis://<user>:<password>@<host>:<post>/<db>`.
|
|
|
|
|
|
|
|
host:
|
|
|
|
type: string
|
|
|
|
default: localhost
|
|
|
|
description: |
|
|
|
|
The hostname or IP address of the Redis server.
|
|
|
|
|
|
|
|
You can also connect to Redis server with a URI:
|
|
|
|
|
|
|
|
- `tcp://[[username:]password@]host[:port][/db]`
|
|
|
|
- `unix://[[username:]password@]path-to-unix-domain-socket[/db]`
|
|
|
|
|
|
|
|
port:
|
|
|
|
type: integer
|
|
|
|
description: The port number of the Redis server to connect to.
|
|
|
|
default: 6379
|
|
|
|
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
description: A path of a Unix socket which should be used for the connection.
|
|
|
|
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
default: default
|
|
|
|
description: |
|
|
|
|
The username which should be used for authentication.
|
|
|
|
|
|
|
|
See: https://redis.io/commands/auth
|
|
|
|
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
description: |
|
|
|
|
The password which should be used for authentication.
|
|
|
|
|
|
|
|
See: https://redis.io/commands/auth
|
|
|
|
|
|
|
|
db:
|
|
|
|
type: integer
|
|
|
|
default: 0
|
|
|
|
description: |
|
|
|
|
The logical database which should be used by the Redis client.
|
|
|
|
|
|
|
|
See: https://redis.io/commands/select
|
|
|
|
|
|
|
|
timeout:
|
|
|
|
type: object
|
2024-02-28 00:12:39 +01:00
|
|
|
properties:
|
2022-04-05 12:41:19 +02:00
|
|
|
connect:
|
|
|
|
type: number
|
|
|
|
description: The timeout in seconds for the initial connection establishment.
|
|
|
|
|
|
|
|
socket:
|
|
|
|
type: number
|
|
|
|
description: The timeout in seconds for executing commands against the Redis server.
|
|
|
|
|
|
|
|
keepalive:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2024-02-28 00:12:39 +01:00
|
|
|
description: Enable periodic keepalive packets.
|
2022-04-05 12:41:19 +02:00
|
|
|
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
default: <node-name>
|
|
|
|
description: The key which this node will use in the Redis keyspace.
|
|
|
|
|
|
|
|
channel:
|
|
|
|
type: string
|
|
|
|
default: <node-name>
|
|
|
|
description: The channel which this node will use when `mode` setting is `channel`.
|
|
|
|
|
|
|
|
notify:
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
description: |
|
|
|
|
Use [Redis keyspace notifications](https://redis.io/topics/notifications) to listen for new updates.
|
|
|
|
This setting is only used if setting `mode` is set to `key` or `hash`.
|
|
|
|
|
|
|
|
ssl:
|
|
|
|
type: object
|
2024-02-28 00:12:39 +01:00
|
|
|
properties:
|
2022-04-05 12:41:19 +02:00
|
|
|
enabled:
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
description: If enabled the connection to the Redis server will be encrypted via SSL/TLS.
|
|
|
|
|
|
|
|
cacert:
|
|
|
|
type: string
|
|
|
|
description: A path to a CA certificate file.
|
|
|
|
|
|
|
|
cacertdir:
|
|
|
|
type: string
|
|
|
|
description: A path to a directory containing CA certificates.
|
|
|
|
|
|
|
|
cert:
|
|
|
|
type: string
|
|
|
|
description: A path to a client certificate file.
|
|
|
|
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
description: A path to the private key file.
|
|
|
|
|
2022-04-07 08:52:19 +02:00
|
|
|
- $ref: ../node_signals.yaml
|
2021-12-06 09:25:55 +01:00
|
|
|
- $ref: ../node.yaml
|