Safe Haskell | None |
---|---|
Language | Haskell2010 |
A raw, low level interface to the memcache protocol.
The various operations are represented in full as they appear at the protocol level and so aren't generally well suited for application use. Instead, applications should use Database.Memcache.Client which presents a higher level API suited for application use.
- get :: Server -> Key -> IO (Maybe (Value, Flags, Version))
- gat :: Server -> Key -> Expiration -> IO (Maybe (Value, Flags, Version))
- touch :: Server -> Key -> Expiration -> IO (Maybe Version)
- set :: Server -> Key -> Value -> Flags -> Expiration -> IO Version
- set' :: Server -> Key -> Value -> Flags -> Expiration -> Version -> IO (Maybe Version)
- add :: Server -> Key -> Value -> Flags -> Expiration -> IO (Maybe Version)
- replace :: Server -> Key -> Value -> Flags -> Expiration -> Version -> IO (Maybe Version)
- delete :: Server -> Key -> Version -> IO Bool
- increment :: Server -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version))
- decrement :: Server -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version))
- append :: Server -> Key -> Value -> Version -> IO (Maybe Version)
- prepend :: Server -> Key -> Value -> Version -> IO (Maybe Version)
- type StatResults = [(ByteString, ByteString)]
- stats :: Server -> Maybe Key -> IO (Maybe StatResults)
- flush :: Server -> Maybe Expiration -> IO ()
- noop :: Server -> IO ()
- version :: Server -> IO ByteString
- quit :: Server -> IO ()
Documentation
increment :: Server -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version)) Source
decrement :: Server -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version)) Source
type StatResults = [(ByteString, ByteString)] Source
StatResults are a list of key-value pairs.
version :: Server -> IO ByteString Source