Haskell implementation of the Tokyo Tyrant binary protocol https://github.com/PeterScott/haskell-tyrant
|Latest on Hackage:||0.4|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Pure Haskell interface to Tokyo Tyrant
Haskell-tyrant is a client library for Tokyo Tyrant. It uses the binary protocol for efficiency.
A simple example assuming you've got ttserver running at the default location
module Main where import Database.TokyoTyrant import Data.ByteString.Lazy.Char8 (pack) defaultHost = "localhost" defaultPort = "1978" main = do let k = pack "mykey" let v = pack "myval" conn <- openConnection defaultHost defaultPort result <- putValue conn k v --should be "success" print result g <- getValue conn k print g -- remove the record created above out conn k -- close connection to server closeConnection conn