Liking cljdoc? Tell your friends :D

aging-session.memory

In-memory session storage with mortality.

In-memory session storage with mortality.
raw docstring

aging-memory-storeclj

(aging-memory-store & opts)

Creates an in-memory session storage engine.

Creates an in-memory session storage engine.
sourceraw docstring

AgingStorecljprotocol

read-timestampclj

(read-timestamp store key)

Read a session from the store and return its timestamp. If no key exists, returns nil.

Read a session from the store and return its timestamp. If no key exists, returns nil.
source

in-threadclj

(in-thread f)

Run a function in a thread.

Run a function in a thread.
sourceraw docstring

MemoryAgingStoreclj

source

SessionEntryclj

source

sweeper-threadclj

(sweeper-thread {:keys [req-count req-limit session-map event-fns]} sweep-delay)

Sweeper thread that watches the session and cleans it.

Sweeper thread that watches the session and cleans it.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close