In-memory session storage with mortality.
In-memory session storage with mortality.
(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
(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-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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close