1
0

added options to configure cache

This commit is contained in:
kolaente
2018-09-13 19:53:03 +02:00
parent 23dc9f777e
commit 416745ddab
6 changed files with 70 additions and 4 deletions

View File

@ -27,6 +27,12 @@ func InitConfig() (err error) {
viper.SetDefault("database.database", "vikunja")
viper.SetDefault("database.path", "./vikunja.db")
viper.SetDefault("database.showqueries", false)
// Cacher
viper.SetDefault("cache.enabled", false)
viper.SetDefault("cache.type", "memory")
viper.SetDefault("cache.maxelementsize", 1000)
viper.SetDefault("cache.redishost", "localhost:6379")
viper.SetDefault("cache.redispassword", "")
// Init checking for environment variables
viper.SetEnvPrefix("vikunja")