-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
16 lines (13 loc) · 779 Bytes
/
.env.example
File metadata and controls
16 lines (13 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
CACHE_TTL=3600 #in seconds
LOG_LEVEL=info
PORT=3000
CACHE_THRESHOLD_METHOD=memory # or "key" for key count
MAX_CACHE_SIZE=10000 # amount of keys allowed, when max is reached, least used one is evicted
MAX_MEMORY_USAGE=1024 # in MB, same as keys, but instead of limiting keys it limits memory usage
MAX_RETRIES=3 # Number of allowed retries per fetch
FETCH_NEW_DATA_ON_BULK=false # fetching bulk keys from redis will return only already cached information due to
# not having to wait for each new key. if you prefer fetching new data on bulk requests,
# set this to true, but it will slow down the bulk request
DEV_MODE=true # true = detailed logs for each request, false = no logs