memcache-0.0.0: A memcached client library.

Safe HaskellNone

Database.Memcache.Server

Description

Handles the connections between a memcache client and the various servers that make up the cluster.

Synopsis

Documentation

data Connection Source

A Memcache connection handle. XXX: Should make abstract

Constructors

Conn 

Fields

conn :: MVar Socket
 

newMemcacheClient :: HostName -> PortNumber -> IO ConnectionSource

Establish a new connection to a memcache backend.

send :: Socket -> Request -> IO ()Source

Send a request to the memcache cluster.

sendRecv :: Connection -> Request -> IO ResponseSource

Send a receieve a single request/response pair to the memcache cluster.

recv :: Socket -> IO ResponseSource

Retrieve a single response from the memcache cluster.