Safe Haskell | None |
---|---|
Language | Haskell98 |
Handles a group of connections to different memcache servers.
- data Cluster
- newMemcacheCluster :: [(HostName, PortNumber)] -> Options -> IO Cluster
- data Options = Options {
- optsCmdFailure :: !FailureMode
- optsServerFailure :: !FailureMode
- optsServerRetries :: !Int
- defaultOptions :: Options
- keyedOp :: forall a. Maybe a -> Cluster -> Key -> (Server -> IO a) -> IO a
- anyOp :: forall a. Maybe a -> Cluster -> (Server -> IO a) -> IO a
- allOp :: forall a. Maybe a -> Cluster -> (Server -> IO a) -> IO [(Server, a)]
Documentation
newMemcacheCluster :: [(HostName, PortNumber)] -> Options -> IO Cluster Source
Establish a new connection to a group of memcached servers.
Options | |
|
keyedOp :: forall a. Maybe a -> Cluster -> Key -> (Server -> IO a) -> IO a Source
Run a memcache operation against a server that maps to the key given in the cluster.