Copyright | (c) David Terei 2016 |
---|---|
License | BSD |
Maintainer | code@davidterei.com |
Stability | stable |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Database.Memcache.Socket
Description
Handles a single Memcached connection, sending and receiving requests.
Types
Basic type for a socket.
Instances
Operations
recv :: Socket -> IO Response Source #
Retrieve a single response from the Memcached server. FIXME: read into buffer to minimize read syscalls
Serialization / Deserialization
szResponse :: Response -> Builder Source #
Serialize a response to a ByteString Builder.
dzResponse :: Header -> ByteString -> Response Source #
Deserialize a Response body.