From 71ba250f61842e0ffd9bfaac9fc1ee74048f3aad Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 2 Jan 2022 18:21:18 -0500 Subject: [PATCH] update defaults i suspect that most web apps want these to be true by default. certainly that has been the case for all the web apps that i've ever worked on --- src/aging_session/memory.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aging_session/memory.clj b/src/aging_session/memory.clj index bea0a20..9f958ae 100644 --- a/src/aging_session/memory.clj +++ b/src/aging_session/memory.clj @@ -103,8 +103,8 @@ [ttl & [opts]] (let [{:keys [session-atom refresh-on-write refresh-on-read sweep-threshold sweep-interval] :or {session-atom (atom {}) - refresh-on-write false - refresh-on-read false + refresh-on-write true + refresh-on-read true sweep-threshold 200 sweep-interval 30}} opts ; internally, we want time values as milliseconds. externally, it is more convenient to have them specified