diff --git a/.env b/.env index 7293f19..c7c2375 100644 --- a/.env +++ b/.env @@ -107,9 +107,9 @@ CACHE_ENABLED=true # REDIS_ENDPOINT_URL is an url of redis REDIS_ENDPOINT_URL=redis:6379 REDIS_PASSWORD= -# CACHE_TTL is a TTL for cached evm requests -# CACHE_TTL should be specified in seconds -CACHE_TTL=600 +# CACHE_TTL_SECONDS is a TTL for cached evm requests +# CACHE_TTL_SECONDS should be specified in seconds +CACHE_TTL_SECONDS=600 # CACHE_PREFIX is used as prefix for any key in the cache, key has such structure: # :evm-request::sha256: # Possible values are testnet, mainnet, etc... diff --git a/config/config.go b/config/config.go index 42dee3f..f9593a6 100644 --- a/config/config.go +++ b/config/config.go @@ -92,7 +92,7 @@ const ( CACHE_ENABLED_ENVIRONMENT_KEY = "CACHE_ENABLED" REDIS_ENDPOINT_URL_ENVIRONMENT_KEY = "REDIS_ENDPOINT_URL" REDIS_PASSWORD_ENVIRONMENT_KEY = "REDIS_PASSWORD" - CACHE_TTL_ENVIRONMENT_KEY = "CACHE_TTL" + CACHE_TTL_ENVIRONMENT_KEY = "CACHE_TTL_SECONDS" CACHE_PREFIX_ENVIRONMENT_KEY = "CACHE_PREFIX" )