hedis-envy-0.1.0.1

Safe HaskellNone
LanguageHaskell2010

Database.Redis.Envy

Synopsis

Documentation

connectInfoFromEnv :: Parser ConnectInfo Source #

Get ConnectInfo from these environment variables:

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.

parsePortId Source #

Arguments

:: String

Value of environment variable

-> Parser PortID 

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