memcache-0.2.0.0: A memcached client library.

Copyright(c) David Terei, 2016
LicenseBSD
Maintainercode@davidterei.com
Stabilitystable
PortabilityGHC
Safe HaskellSafe
LanguageHaskell2010

Database.Memcache.Types

Contents

Description

Stores the various types needed by Memcached. Mostly concerned with the representation of the protocol.

Synopsis

SASL Authentication

data Authentication Source

SASL Authentication information for a server.

Constructors

Auth 
NoAuth 

type Username = ByteString Source

Username for authentication.

type Password = ByteString Source

Password for authentication.

Fields & Values

data Q Source

Constructors

Loud 
Quiet 

Instances

data K Source

Constructors

NoKey 
IncludeKey 

Instances

data Status Source

The status (success or error) of a Memcached operation returned in a Response.

Constructors

NoError

Operation successful.

ErrKeyNotFound

Key not found.

ErrKeyExists

Key exists when not expected.

ErrValueTooLarge

Value too large to store at server.

ErrInvalidArgs

Invalid arguments for operation.

ErrItemNotStored

Key-Value pair not stored at server (internal error).

ErrValueNonNumeric

Value not numeric when increment or decrement requested.

ErrUnknownCommand

Server doesn't know requested command.

ErrOutOfMemory

Server out of memory.

SaslAuthFail

SASL authentication failed.

SaslAuthContinue

SASL authentication requires more steps.

Header

data Header Source

Memcached packet header (for both Request and Response).

Constructors

Header 

Requests

data Request Source

Constructors

Req 

emptyReq :: Request Source

Noop request.

Responses

data Response Source

Memcached response packet.

Constructors

Res 

emptyRes :: Response Source

Noop response.