/enduro-session

A durable Ring session store based on enduro's file-atom

Primary LanguageShellEclipse Public License 1.0EPL-1.0

enduro-session

A Clojure library designed to provide the simplest form of durable Ring session store. It is basically a clone of the original in-memory session store with the atom replaced by Alan Dipert's durable enduro file-atom.

Build Status

Usage

Dependency:

[simlun/enduro-session "0.1.0"]

Ring middleware:

(use 'ring.adapter.jetty
     '[simlun.enduro-session :only [wrap-enduro-session]])

(defn handler [request]
; ...
)

(run-jetty (wrap-enduro-session handler) {:port 3000}))

Development

The main entry point is the Makefile which will run all tests on $ make.

License

Copyright © 2014 Simon Lundmark

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.