wheb-redis: Redis connection for Wheb

[ bsd3, library, web ] [ Propose Tags ]

Implements basic functionality for:

Gives instances of Auth, Session and Cache backends for Wheb.

In action:

Use with language extensions OverloadedStrings

 import Web.Wheb
 import Web.Wheb.Plugins.Redis

 data MyCtx = MyCtx RedisContainer

 instance RedisApp MyCtx where
   getRedisContainer (MyCtx rc) = rc

 main :: IO ()
 main = do
   opts <- generateOptions $ do
       r <- initRedis defaultConnectInfo
       addGET "home" rootPat ((runRedis $ get "hello") >>= (text . spack))
       return (MyCtx r, ())

   runRawHandler opts $ do
       runRedis $ set "hello" "world"

   runWhebServer opts

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1.0
Dependencies base (>=4.7 && <4.8), bytestring (>=0.10 && <0.11), hedis (>=0.6 && <0.7), mtl (>=2.2 && <2.3), text (>=1.1 && <1.2), Wheb (>=0.3 && <0.4) [details]
License BSD-3-Clause
Author Kyle
Maintainer me@khanson.io
Category Web
Home page https://github.com/hansonkd/Wheb-Framework
Uploaded by hansonkd at 2014-08-27T04:29:59Z
Distributions NixOS:0.0.1.0
Downloads 922 total (3 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]