Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Stores the various types needed by memcache. Mostly concerned with the representation of the protocol.
- data Authentication
- type Username = ByteString
- type Password = ByteString
- data Q
- data K
- = NoKey
- | IncludeKey
- type Key = ByteString
- type Value = ByteString
- type Extras = ByteString
- type Initial = Word64
- type Delta = Word64
- type Expiration = Word32
- type Flags = Word32
- type Version = Word64
- mEMCACHE_HEADER_SIZE :: Int
- data Header = Header {}
- data Request = Req {}
- data OpRequest
- = ReqGet Q K Key
- | ReqSet Q Key Value SESet
- | ReqAdd Q Key Value SESet
- | ReqReplace Q Key Value SESet
- | ReqDelete Q Key
- | ReqIncrement Q Key SEIncr
- | ReqDecrement Q Key SEIncr
- | ReqAppend Q Key Value
- | ReqPrepend Q Key Value
- | ReqTouch Key SETouch
- | ReqGAT Q K Key SETouch
- | ReqFlush Q (Maybe SETouch)
- | ReqNoop
- | ReqVersion
- | ReqStat (Maybe Key)
- | ReqQuit Q
- | ReqSASLList
- | ReqSASLStart Key Value
- | ReqSASLStep Key Value
- data SESet = SESet Flags Expiration
- data SEIncr = SEIncr Initial Delta Expiration
- data SETouch = SETouch Expiration
- emptyReq :: Request
- data Response = Res {}
- data OpResponse
- = ResGet Q Value Flags
- | ResGetK Q Key Value Flags
- | ResSet Q
- | ResAdd Q
- | ResReplace Q
- | ResDelete Q
- | ResIncrement Q Word64
- | ResDecrement Q Word64
- | ResAppend Q
- | ResPrepend Q
- | ResTouch
- | ResGAT Q Value Flags
- | ResGATK Q Key Value Flags
- | ResFlush Q
- | ResNoop
- | ResVersion Value
- | ResStat Key Value
- | ResQuit Q
- | ResSASLList Value
- | ResSASLStart
- | ResSASLStep
- data Status
- data ProtocolError = ProtocolError {}
- data IncorrectResponse = IncorrectResponse {}
Documentation
data Authentication Source
SASL Authentication information for a server.
type Username = ByteString Source
Username for authentication.
type Password = ByteString Source
Password for authentication.
type Key = ByteString Source
type Value = ByteString Source
type Extras = ByteString Source
type Expiration = Word32 Source
data OpResponse Source
data ProtocolError Source