added options to configure cache

This commit is contained in:
kolaente 2018-09-13 19:53:03 +02:00
parent 23dc9f777e
commit 416745ddab
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
6 changed files with 70 additions and 4 deletions

View file

@ -45,4 +45,16 @@ database:
Path: "./vikunja.db"
# Whether to show mysql queries or not. Useful for debugging.
showqueries: "false"
cache:
# If cache is enabled or not
enabled: false
# Cache type. Possible values are memory or redis
type: memory
# When using memory this defines the maximum size an element can take
maxelementsize: 1000
# When using redis, this is the host of the redis server including its port.
redishost: 'localhost:6379'
# When using redis, this is the password used to authenicate against the redis server
redispassword: ''
```