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
Downloads
- wheb-redis-0.0.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
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 | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 1028 total (5 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] |