Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
connectInfoFromEnv :: Parser ConnectInfo Source #
Get ConnectInfo
from these environment variables:
REDIS_HOST
:connectHost
REDIS_PORT_ID
:connectPort
REDIS_AUTH
:connectAuth
REDIS_DATABASE_INDEX
:connectDatabase
REDIS_MAX_CONNECTIONS
:connectMaxConnections
REDIS_MAX_IDLE_TIME
:connectMaxIdleTime
REDIS_TIMEOUT
:connectTimeout
The corresponding field of defaultConnectInfo
is used as the default value.
NOTE: connectTLSParams
is NOT supported.
This is hard to express as environment variables.
connectInfoFromEnvWithDefault :: ConnectInfo -> Parser ConnectInfo Source #
A variant of connectInfoFromEnv
which you can provide the
default value by yourself.
This is necessary to implement the instance of FromEnv
for
ConnectInfo
correctly.
Parse the value of REDIS_PORT_ID
.
The value must be a port number or the absolute path to the UNIX domain
socket.
Internally used by connectInfoFromEnv