redissessions
Redis-backed sessions for jester
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:23 |
Tags
Installation
nimble install redissessions
choosenim install redissessions
git clone https://github.com/ithkuil/redissessions/
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| redissessions | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/ithkuil/redissessions/ |
|---|---|
| Homepage | https://github.com/ithkuil/redissessions/ |
| Registry Source | nimble_official |
README
redisSessions
This module provides Redis-backed session support for Jester applications.
The following is a simple application that demonstrates usage:
import jester, asyncdispatch, htmlgen
import redissessions
redissessions.config("expiresMinutes", "1")
routes:
get "/saveit":
session["data1"]="Saved"
resp "ok"
get "/data":
var outp = ""
forall redissessions.session:
outp = outp & key & ": " & val
resp outp
get "/loadit":
resp session["data1"]
get "/notset":
resp session["notset"]
get "/clearit":
deleteSession
resp "Session deleted"
runForever()
Configuring
redissessions.config("expiresMinutes", "1", "host", "127.0.0.1")
Saving a session variable
session["varname"] = "some string"
Reading a session variable
resp "The data is " & session["varname"]
Iterating over session variables
forall redissessions.session:
echo key & ": " & val # key and val injected by 'forall' template
Clearing session data
deleteSession