Skip to content

Commit

Permalink
add back lost code from git rebase / merge resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
galxy25 committed Oct 27, 2023
1 parent 0759816 commit f866718
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const (
CACHE_ENABLED_ENVIRONMENT_KEY = "CACHE_ENABLED"
REDIS_ENDPOINT_URL_ENVIRONMENT_KEY = "REDIS_ENDPOINT_URL"
REDIS_PASSWORD_ENVIRONMENT_KEY = "REDIS_PASSWORD"
CACHE_INDEFINITELY_KEY = "CACHE_INDEFINITELY"
CACHE_TTL_ENVIRONMENT_KEY = "CACHE_TTL_SECONDS"
CACHE_PREFIX_ENVIRONMENT_KEY = "CACHE_PREFIX"
)
Expand Down Expand Up @@ -249,6 +250,7 @@ func ReadConfig() Config {
RedisEndpointURL: os.Getenv(REDIS_ENDPOINT_URL_ENVIRONMENT_KEY),
RedisPassword: os.Getenv(REDIS_PASSWORD_ENVIRONMENT_KEY),
CacheTTL: time.Duration(EnvOrDefaultInt(CACHE_TTL_ENVIRONMENT_KEY, 0)) * time.Second,
CacheIndefinitely: EnvOrDefaultBool(CACHE_INDEFINITELY_KEY, false),
CachePrefix: os.Getenv(CACHE_PREFIX_ENVIRONMENT_KEY),
}
}

0 comments on commit f866718

Please sign in to comment.