From 57f3620aae1213294c3760a07f739b204654b96e Mon Sep 17 00:00:00 2001 From: mikestefanello Date: Sat, 11 Dec 2021 13:37:35 -0500 Subject: [PATCH] Rename cache expiration config fields. --- config/config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/config.go b/config/config.go index a2a1371..2a00cdd 100644 --- a/config/config.go +++ b/config/config.go @@ -49,12 +49,12 @@ type AppConfig struct { } type CacheConfig struct { - Hostname string `env:"CACHE_HOSTNAME,default=localhost"` - Port uint16 `env:"CACHE_PORT,default=6379"` - Password string `env:"CACHE_PASSWORD"` - MaxAge struct { - StaticFile time.Duration `env:"CACHE_MAX_AGE_STATIC_FILE,default=4380h"` - Page time.Duration `env:"CACHE_MAX_PAGE_PAGE,default=24h"` + Hostname string `env:"CACHE_HOSTNAME,default=localhost"` + Port uint16 `env:"CACHE_PORT,default=6379"` + Password string `env:"CACHE_PASSWORD"` + Expiration struct { + StaticFile time.Duration `env:"CACHE_EXPIRATION_STATIC_FILE,default=4380h"` + Page time.Duration `env:"CACHE_EXPIRATION_PAGE,default=24h"` } }