https://github.com/t4ccer/wai-session-redis
Redis based session store for Network.Wai.Session
https://github.com/t4ccer/wai-session-redis
haskell redis wai
Last synced: 3 months ago
JSON representation
Redis based session store for Network.Wai.Session
- Host: GitHub
- URL: https://github.com/t4ccer/wai-session-redis
- Owner: t4ccer
- License: bsd-3-clause
- Created: 2021-04-07T16:08:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-26T15:40:50.000Z (about 3 years ago)
- Last Synced: 2025-03-28T21:11:24.872Z (3 months ago)
- Topics: haskell, redis, wai
- Language: Haskell
- Homepage:
- Size: 59.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wai-session-redis
[](https://github.com/t4ccer/wai-session-redis/actions/workflows/build.yml)
[](https://hackage.haskell.org/package/wai-session-redis)Provides Redis based session store for [Network.Wai.Session](https://hackage.haskell.org/package/wai-session)
For example usage view [example/Main.hs](https://github.com/t4ccer/wai-session-redis/tree/main/example/Main.hs)## Tests
To run tests `wai-session-redis` must have access to running `redis` instance.
### Using docker and stack
```bash
docker run --name redis-session-tests -p 6379:6379 -d redis
stack test
docker rm -f redis-session-tests
```### Using nix
Nix takes care of running `redis` instance and testing `wai-session-redis`.
```bash
nix-build
```