Rename cache expiration config fields.
This commit is contained in:
parent
e5038f7bbf
commit
57f3620aae
1 changed files with 6 additions and 6 deletions
|
|
@ -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"`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue