memcache-0.2.0.1: A memcached client library.

Copyright(c) David Terei 2016
LicenseBSD
Maintainercode@davidterei.com
Stabilitystable
PortabilityGHC
Safe HaskellNone
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

Eq Q Source # 

Methods

(==) :: Q -> Q -> Bool #

(/=) :: Q -> Q -> Bool #

Show Q Source # 

Methods

showsPrec :: Int -> Q -> ShowS #

show :: Q -> String #

showList :: [Q] -> ShowS #

data K Source #

Constructors

NoKey 
IncludeKey 

Instances

Eq K Source # 

Methods

(==) :: K -> K -> Bool #

(/=) :: K -> K -> Bool #

Show K Source # 

Methods

showsPrec :: Int -> K -> ShowS #

show :: K -> String #

showList :: [K] -> ShowS #

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.

Instances

Header

data Header Source #

Memcached packet header (for both Request and Response).

Constructors

Header 

Instances

Requests

data Request Source #

Constructors

Req 

data SESet Source #

Constructors

SESet Flags Expiration 

Instances

Eq SESet Source # 

Methods

(==) :: SESet -> SESet -> Bool #

(/=) :: SESet -> SESet -> Bool #

Show SESet Source # 

Methods

showsPrec :: Int -> SESet -> ShowS #

show :: SESet -> String #

showList :: [SESet] -> ShowS #

data SEIncr Source #

Instances

data SERaw Source #

Constructors

SERaw Builder Int 

Instances

Eq SERaw Source # 

Methods

(==) :: SERaw -> SERaw -> Bool #

(/=) :: SERaw -> SERaw -> Bool #

Show SERaw Source # 

Methods

showsPrec :: Int -> SERaw -> ShowS #

show :: SERaw -> String #

showList :: [SERaw] -> ShowS #

emptyReq :: Request Source #

Noop request.

Responses

data Response Source #

Memcached response packet.

Constructors

Res 

emptyRes :: Response Source #

Noop response.