monarch-0.3.0.0: Monadic interface for TokyoTyrant.

Safe HaskellSafe-Infered

Database.Monarch.MessagePack

Description

Store/Retrieve a MessagePackable record.

Synopsis

Documentation

putSource

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.

putKeepSource

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.

putNoResponseSource

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.

getSource

Arguments

:: Unpackable a 
=> ByteString

key

-> Monarch (Maybe a) 

Retrieve a record.