Safe Haskell | None |
---|
This module makes tokyotyrant-haskell monadic.
- type Key = ByteString
- type Value = ByteString
- type Host = ByteString
- type Port = Int
- data Monarch a
- runMonarch :: MonadIO m => Host -> Port -> Monarch a -> m (Either String a)
- get :: Key -> Monarch (Maybe Value)
- put :: Key -> Value -> Monarch ()
- putKeep :: Key -> Value -> Monarch ()
- mget :: [Key] -> Monarch [(Key, Value)]
- mput :: [(Key, Value)] -> Monarch ()
- delete :: Key -> Monarch ()
- vanish :: Monarch ()
- fwmkeys :: ByteString -> Maybe Int -> Monarch [Key]
Basic Types
type Key = ByteStringSource
type Value = ByteStringSource
type Host = ByteStringSource
TokyoTyrant DB action monad and its runner
A monad supporting TokyoTyrant access.
Run Monarch with TokyoTyrant at target host and port.