Safe Haskell | Safe-Infered |
---|
TokyoTyrant Original Binary Protocol(http://fallabs.com/tokyotyrant/spex.html#protocol).
- put :: ByteString -> ByteString -> Monarch ()
- putKeep :: ByteString -> ByteString -> Monarch ()
- putCat :: ByteString -> ByteString -> Monarch ()
- putShiftLeft :: ByteString -> ByteString -> Int -> Monarch ()
- putNoResponse :: ByteString -> ByteString -> Monarch ()
- out :: ByteString -> Monarch ()
- get :: ByteString -> Monarch (Maybe ByteString)
- multipleGet :: [ByteString] -> Monarch [(ByteString, ByteString)]
- valueSize :: ByteString -> Monarch (Maybe Int)
- iterInit :: Monarch ()
- iterNext :: Monarch (Maybe ByteString)
- forwardMatchingKeys :: ByteString -> Maybe Int -> Monarch [ByteString]
- addInt :: ByteString -> Int -> Monarch Int
- addDouble :: ByteString -> Double -> Monarch Double
- ext :: ByteString -> [ExtOption] -> ByteString -> ByteString -> Monarch ByteString
- sync :: Monarch ()
- optimize :: ByteString -> Monarch ()
- vanish :: Monarch ()
- copy :: ByteString -> Monarch ()
- restore :: Integral a => ByteString -> a -> [RestoreOption] -> Monarch ()
- setMaster :: Integral a => ByteString -> Int -> a -> [RestoreOption] -> Monarch ()
- recordNum :: Monarch Int64
- size :: Monarch Int64
- status :: Monarch ByteString
- misc :: ByteString -> [MiscOption] -> [ByteString] -> Monarch [ByteString]
Documentation
:: ByteString | key |
-> ByteString | value |
-> Monarch () |
Store a record. If a record with the same key exists in the database, it is overwritten.
:: ByteString | key |
-> ByteString | value |
-> Monarch () |
Store a new record. If a record with the same key exists in the database, this function has no effect.
:: ByteString | key |
-> ByteString | value |
-> Monarch () |
Concatenate a value at the end of the existing record. If there is no corresponding record, a new record is created.
:: ByteString | key |
-> ByteString | value |
-> Int | width |
-> Monarch () |
Concatenate a value at the end of the existing record and shift it to the left. If there is no corresponding record, a new record is created.
:: ByteString | key |
-> ByteString | value |
-> Monarch () |
Store a record without response. If a record with the same key exists in the database, it is overwritten.
iterNext :: Monarch (Maybe ByteString)Source
Get the next key of the iterator. The iterator can be updated by multiple connections and then it is not assured that every record is traversed.
:: ByteString | key prefix |
-> Maybe Int | maximum number of keys to be fetched. |
-> Monarch [ByteString] |
Get forward matching keys.
:: ByteString | key |
-> Int | value |
-> Monarch Int |
Add an integer to a record. If the corresponding record exists, the value is treated as an integer and is added to. If no record corresponds, a new record of the additional value is stored.
:: ByteString | key |
-> Double | value |
-> Monarch Double |
Add a real number to a record. If the corresponding record exists, the value is treated as a real number and is added to. If no record corresponds, a new record of the additional value is stored.
:: ByteString | function |
-> [ExtOption] | option flags |
-> ByteString | key |
-> ByteString | value |
-> Monarch ByteString |
Call a function of the script language extension.
:: Integral a | |
=> ByteString | path |
-> a | beginning time stamp in microseconds |
-> [RestoreOption] | option flags |
-> Monarch () |
Restore the database file from the update log.
:: Integral a | |
=> ByteString | host |
-> Int | port |
-> a | beginning time stamp in microseconds |
-> [RestoreOption] | option flags |
-> Monarch () |
Set the replication master.
status :: Monarch ByteStringSource
Get the status string of the database.
:: ByteString | function name |
-> [MiscOption] | option flags |
-> [ByteString] | arguments |
-> Monarch [ByteString] |
Call a versatile function for miscellaneous operations.