Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simplified redis wrapper for Haskell

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Database
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Setup.hs
Octocat-spinner-32 redis-simple.cabal
README.markdown

redis-simple

This package is meant to make working with redis in Haskell more simple. It is a small layer above the full-blown redis package.

Note that it only supports a small subset of the redis features.

Usage

A simple example:

{-# LANGUAGE OverloadedStrings #-}
module Main where

import Database.Redis.Redis (connect, localhost, defaultPort)
import Database.Redis.Simple (itemSet, itemGet)

main :: IO ()
main = do
    redis <- connect localhost defaultPort
    itemSet redis "commander" ("Adama" :: String)
    Just commander <- itemGet redis "commander"
    putStrLn $ commander
Something went wrong with that request. Please try again.