Copyright | (c) David Terei 2016 |
---|---|
License | BSD |
Maintainer | code@davidterei.com |
Stability | stable |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Database.Memcache.Server
Contents
Description
Handles the connections between a Memcached client and a single server.
Memcached expected errors (part of protocol) are returned in the Response,
unexpected errors (e.g., network failure) are thrown as exceptions. While
the Server datatype supports a failed
and failedAt
flag for managing
retries, it's up to consumers to use this.
Server
newServer :: HostName -> ServiceName -> Authentication -> IO Server Source #
Create a new Memcached server connection.
sendRecv :: Server -> Request -> IO Response Source #
Send and receive a single request/response pair to the Memcached server.