No matching definitions.

session/serde

src/session/serde.tur

the per-session JSON envelope, shared across store backends.

Since: v0.2.0

defn

sessmap-encode

(sessmap-encode [map : SessMap ttl : int] :)

serialise a SessMap to the JSON envelope.

mapthe session map
ttllifetime in seconds (<= 0 means no expiry)

:cstr -- caller-owned JSON envelope.

Since: v0.2.0

defn

envelope-expires-at

(envelope-expires-at [json : cstr] :)

read the envelope's expires_at (0 if absent/never).

Since: v0.2.0

defn

sessmap-decode

(sessmap-decode [json : cstr] :)

parse the envelope's "data" object into a fresh SessMap.

Since: v0.2.0