redis-hs: A simple Redis library for Haskell

[ database, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

This package provides access to Redis stores using Data.ByteString.UTF8 for consistent handling of UTF8 encoding. The function set is almost complete.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.1.0, 0.1.1, 0.1.2
Dependencies base (>=4 && <5), bytestring (>=0.9), network (>=2.3), utf8-string (>=0.3.5) [details]
License MIT
Author Will Langstroth <will@langstroth.com>
Maintainer Will Langstroth <will@langstroth.com>
Category Database
Home page http://ohloh.net/p/redis-hs
Source repo head: git clone http://github.com/wlangstroth/redis-hs.git
Uploaded by WillLangstroth at 2010-12-18T01:54:04Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 6903 total (36 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for redis-hs-0.1.2

[back to package description]

redis-hs

A simple Redis driver in Haskell using Data.ByteString.UTF8 for consistent UTF8 handling.

Install

cabal install redis-hs

Use

Make sure to include

Database.Redis

and try the following:

con <- connect localhost defaultPort
_ <- select con 0
_ <- itemSet con "greek" "ἐστίν"
tester <- itemGet con "greek"
putStrLn $ unwrapReply tester

If you need to see the details of the response, replace unwrapReply with show.

Acknowledgements

Much of the code in this library is inspired by the work of Anders Conbere and Alexander Bogdanov (author of the redis library on Hackage).