mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 13:07:35 -06:00
[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:
parent
d2a09c1e0b
commit
cb2b2fd805
11 changed files with 1168 additions and 91 deletions
7
internal/config/testdata/test.yaml
vendored
7
internal/config/testdata/test.yaml
vendored
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue