Rename cache expiration config fields.

This commit is contained in:
mikestefanello 2021-12-11 13:37:35 -05:00
parent e5038f7bbf
commit 57f3620aae

View file

@ -49,12 +49,12 @@ type AppConfig struct {
} }
type CacheConfig struct { type CacheConfig struct {
Hostname string `env:"CACHE_HOSTNAME,default=localhost"` Hostname string `env:"CACHE_HOSTNAME,default=localhost"`
Port uint16 `env:"CACHE_PORT,default=6379"` Port uint16 `env:"CACHE_PORT,default=6379"`
Password string `env:"CACHE_PASSWORD"` Password string `env:"CACHE_PASSWORD"`
MaxAge struct { Expiration struct {
StaticFile time.Duration `env:"CACHE_MAX_AGE_STATIC_FILE,default=4380h"` StaticFile time.Duration `env:"CACHE_EXPIRATION_STATIC_FILE,default=4380h"`
Page time.Duration `env:"CACHE_MAX_PAGE_PAGE,default=24h"` Page time.Duration `env:"CACHE_EXPIRATION_PAGE,default=24h"`
} }
} }