memcache-0.1.0.0: A memcached client library.
Database.Memcache.Server
Description
Handles the connections between a memcache client and a single server.
Synopsis
data Server Source
A memcached server connection.
Instances
newServer :: HostName -> PortNumber -> Authentication -> IO Server Source
Create a new memcached connection.
sendRecv :: Server -> Request -> IO Response Source
Send and receive a single request/response pair to the memcached server.
withSocket :: Server -> (Socket -> IO a) -> IO a Source
Run a function with access to an server socket for using send and recv.
send
recv
close :: Server -> IO () Source
Close the server connection. If you perform another operation after this, the connection will be re-established.