Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Connection
- withConnection :: ConnectInfo -> (Connection -> IO a) -> IO a
- connect :: ConnectInfo -> IO Connection
- close :: Connection -> IO ()
- get :: Key -> Connection -> IO (Flags, Value)
- get_ :: Key -> Connection -> IO Value
- set :: Flags -> Expiry -> Key -> Value -> Connection -> IO ()
- add :: Flags -> Expiry -> Key -> Value -> Connection -> IO ()
- replace :: Flags -> Expiry -> Key -> Value -> Connection -> IO ()
- delete :: Key -> Connection -> IO ()
- increment :: Expiry -> Key -> Delta -> Initial -> Connection -> IO Counter
- decrement :: Expiry -> Key -> Delta -> Initial -> Connection -> IO Counter
- flushAll :: Connection -> IO ()
- version :: Connection -> IO Version
- versionString :: Connection -> IO ByteString
- noOp :: Connection -> IO ()
- append :: Key -> Value -> Connection -> IO ()
- prepend :: Key -> Value -> Connection -> IO ()
- touch :: Expiry -> Key -> Connection -> IO ()
- getAndTouch :: Expiry -> Key -> Connection -> IO (Flags, Value)
- getAndTouch_ :: Expiry -> Key -> Connection -> IO Value
- modify :: Expiry -> Key -> (Flags -> Value -> (Flags, Value, a)) -> Connection -> IO a
- modify_ :: Expiry -> Key -> (Flags -> Value -> (Flags, Value)) -> Connection -> IO ()
- module Database.Memcached.Binary.Types
- module Database.Memcached.Binary.Types.Exception
- module Data.Default.Class
- module Network
connection
data Connection Source
withConnection :: ConnectInfo -> (Connection -> IO a) -> IO a Source
connect :: ConnectInfo -> IO Connection Source
close :: Connection -> IO () Source
get
set
delete
delete :: Key -> Connection -> IO () Source
increment/decrement
flush
flushAll :: Connection -> IO () Source
flush all value.
version
version :: Connection -> IO Version Source
versionString :: Connection -> IO ByteString Source
get version string.
noOp
noOp :: Connection -> IO () Source
noop(use for keepalive).
append/prepend
touch
getAndTouch :: Expiry -> Key -> Connection -> IO (Flags, Value) Source
get value/change expiry.
getAndTouch_ :: Expiry -> Key -> Connection -> IO Value Source
get value/change expiry.
modify
modify :: Expiry -> Key -> (Flags -> Value -> (Flags, Value, a)) -> Connection -> IO a Source
modify value in transaction.
modify_ :: Expiry -> Key -> (Flags -> Value -> (Flags, Value)) -> Connection -> IO () Source
modify value in transaction.
reexports
def
module Data.Default.Class
PortID(..)
module Network