Safe Haskell | Safe-Infered |
---|
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
:: Packable a | |
=> ByteString | key |
-> a | value |
-> Monarch () |
Store a record. If a record with the same key exists in the database, it is overwritten.
:: 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.
:: 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.