| Safe Haskell | Safe-Infered |
|---|
Database.Monarch.MessagePack
Description
Store/Retrieve a MessagePackable record.
- put :: Packable a => ByteString -> a -> Monarch ()
- putKeep :: Packable a => ByteString -> a -> Monarch ()
- putNoResponse :: Packable a => ByteString -> a -> Monarch ()
- get :: Unpackable a => ByteString -> Monarch (Maybe a)
Documentation
Arguments
| :: Packable a | |
| => ByteString | key |
| -> a | value |
| -> Monarch () |
Store a record. If a record with the same key exists in the database, it is overwritten.
Arguments
| :: Packable a | |
| => ByteString | key |
| -> a | value |
| -> Monarch () |
Store a new record. If a record with the same key exists in the database, this function has no effect.
Arguments
| :: Packable a | |
| => ByteString | key |
| -> a | value |
| -> Monarch () |
Store a record without response. If a record with the same key exists in the database, it is overwritten.