Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 11 days 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-26T15:40:50.000Z (over 2 years ago)
- Last Synced: 2024-12-05T22:08:50.535Z (17 days 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
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/t4ccer/wai-session-redis/Build?label=build)](https://github.com/t4ccer/wai-session-redis/actions/workflows/build.yml)
[![Hackage](https://img.shields.io/hackage/v/wai-session-redis?color=blue)](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
```