hedis-config

Easy trivial configuration for Redis

https://bitbucket.org/s9gf4ult/hedis-config

Latest on Hackage:1.0.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Aleksey Uimanov
Maintained by [email protected]

Datatype to parse redis connection settings from file like

host: localhost                 # host name or address
port: 6379                      # you can specify either port
# socket: /run/redis.socket     # or unix socket path
# service: redis                # or service name
password: "pass"                # if not specified then no password used
database: 0                     # database number to connect to
max-connections: 5              # max connections in pool
max-idle-time: 30               # keep connection open for 30 seconds
timeout: 30                     # connection timeout