Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 #
MemcachedServers | |
|
toServerSpecs :: MemcachedServers -> [ServerSpec] Source #