Liking cljdoc? Tell your friends :D

aging-session.core

In-memory session storage with mortality.

In-memory session storage with mortality.
raw docstring

aging-memory-storeclj

(aging-memory-store ttl & [opts])

Creates an in-memory session storage engine where entries expire after the given ttl

Creates an in-memory session storage engine where entries expire after the given ttl
sourceraw docstring

AgingStorecljprotocol

all-entriesclj

(all-entries store)

Returns a map containing all entries currently in the session store.

Returns a map containing all entries currently in the session store.

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

default-optsclj

source

MemoryAgingStoreclj

source

SessionEntryclj

source

stopclj

(stop store)

Stops the aging-memory-store. Currently only provided as a convenience for applications that need to restart their web handler. This function should be used in such a case to stop the sweeper-thread. The vast majority of apps won't need to call this ever.

Stops the aging-memory-store. Currently only provided as a convenience for applications that need to restart their
web handler. This function should be used in such a case to stop the sweeper-thread. The vast majority of apps won't
need to call this ever.
sourceraw docstring

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

× close