freckle-app-1.15.5.0: Haskell application toolkit used at Freckle
Safe HaskellSafe-Inferred
LanguageHaskell2010

Freckle.App.Memcached.Servers

Description

Read a Memcached Servers value, to support ENV-based configuration

Format:

memcached://[user[:password]@]host][:port],...

Usage with Freckle.App.Env:

-- Required
Env.var (Env.eitherReader readMemcachedServers <=< Env.nonempty) MEMCACHED_SERVERS mempty

-- Default to localhost:11211
Env.var (Env.eitherReader readMemcachedServers) MEMCACHED_SERVERS (Env.def defaultMemcachedServers)

-- Default to disabled
Env.var (Env.eitherReader readMemcachedServers) MEMCACHED_SERVERS (Env.def emptyMemcachedServers)

Documentation

newtype MemcachedServers Source #

Constructors

MemcachedServers 

Fields