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
This commit is contained in:
Gered 2022-01-02 18:21:18 -05:00
parent 64a62e4a80
commit 71ba250f61

View file

@ -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