wheb-redis: Redis connection for Wheb
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
Versions [faq] | 0.0.1.0 |
---|---|
Dependencies | base (==4.7.*), bytestring (==0.10.*), hedis (==0.6.*), mtl (==2.2.*), text (==1.1.*), Wheb (==0.3.*) [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 | 843 total (1 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] |
Downloads
- wheb-redis-0.0.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)