This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; setup db to test with | |
;; note that this setup uses a local dev transactor | |
;; you can use a different transactor, but you cannot | |
;; use a mem db because it does not support the log API | |
(require '[datomic.api :as d]) | |
(def uri "datomic:dev://localhost:4334/reified-txes") | |
(d/delete-database uri) | |
(d/create-database uri) | |
(def conn (d/connect uri)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ns ring.middleware.session | |
"Session manipulation." | |
(:require [ring.middleware.cookies :as cookies] | |
[ring.middleware.session.store :as store] | |
[ring.middleware.session.memory :as mem])) | |
(defn session-options | |
[options] | |
{:store (options :store (mem/memory-store)) | |
:cookie-name (options :cookie-name "ring-session") |