Skip to content

Commit

Permalink
update jsonschema for redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
spicy-sauce committed Dec 16, 2024
1 parent 7b8ded9 commit 5185423
Showing 1 changed file with 33 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"type": "string",
"const": "redis"
},
"host": { "description": "Redis DB host", "type": "string" },
"host": {
"description": "Redis DB host",
"type": "string"
},
"port": {
"description": "Redis DB port",
"type": "integer",
Expand Down Expand Up @@ -38,22 +41,48 @@
"cacert": {
"description": "CA certificate file to verify with",
"type": "string"
},
"socket_timeout": {
"description": "Socket timeout in seconds",
"type": "number",
"minimum": 0,
"default": 10.0
},
"socket_connect_timeout": {
"description": "Socket connection timeout in seconds",
"type": "number",
"minimum": 0,
"default": 2.0
},
"socket_keepalive": {
"description": "Enable/disable TCP keepalive",
"type": "boolean",
"default": true
},
"health_check_interval": {
"description": "Interval for health checks in seconds",
"type": "number",
"minimum": 0,
"default": 60
}
},
"additionalProperties": false,
"required": ["type", "host", "port"],
"dependentRequired": {
"key": ["cert"],
"cert": ["key"],
"key_password": ["key"],
"user": ["password"]
"key_password": ["key"]
},
"examples": [
{
"cache": {
"type": "redis",
"host": "localhost",
"port": 6379
"port": 6379,
"socket_timeout": 10.0,
"socket_connect_timeout": 2.0,
"socket_keepalive": true,
"health_check_interval": 60
}
}
]
Expand Down

0 comments on commit 5185423

Please sign in to comment.