| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Redis.Envy
Synopsis
Documentation
connectInfoFromEnv :: Parser ConnectInfo Source #
Get ConnectInfo from these environment variables:
REDIS_HOST:connectHostREDIS_PORT_ID:connectPortREDIS_AUTH:connectAuthREDIS_DATABASE_INDEX:connectDatabaseREDIS_MAX_CONNECTIONS:connectMaxConnectionsREDIS_MAX_IDLE_TIME:connectMaxIdleTimeREDIS_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