[feature] support configuring database caches (#1246)

* update config generator to support nested structs, add cache configuration options

* update envparsing test

* add cache configuration to config parse tests

* set cache configuration in testrig

* move caches to sub-cache "gts" namespace, update envparsing, add cache config docs to example config

Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
kim 2022-12-11 13:03:15 +00:00 committed by GitHub
commit cb2b2fd805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 1168 additions and 91 deletions

View file

@ -409,3 +409,10 @@ syslog-protocol: "udp"
# String. Address:port to send syslog logs to. Leave empty to connect to local syslog.
# Default: "localhost:514"
syslog-address: "localhost:514"
# Cache configuration
cache:
gts:
account-max-size: 99
account-ttl: "3h"
account-sweep-freq: "1s"