Rename cache expiration config fields.
This commit is contained in:
parent
e5038f7bbf
commit
57f3620aae
1 changed files with 6 additions and 6 deletions
|
|
@ -52,9 +52,9 @@ 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"`
|
||||
Expiration struct {
|
||||
StaticFile time.Duration `env:"CACHE_EXPIRATION_STATIC_FILE,default=4380h"`
|
||||
Page time.Duration `env:"CACHE_EXPIRATION_PAGE,default=24h"`
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue