(last-snapshot-file dir)
(list-files dir)
(handle! this event)
Journals the event, applies the business function to the state and the event; and returns the new state.
Journals the event, applies the business function to the state and the event; and returns the new state.
(snapshot! this)
Creates a snapshot of the current state.
Creates a snapshot of the current state.
(timestamp this)
Calls the timestamp-fn
Calls the timestamp-fn
(prevayler! {:keys [initial-state business-fn timestamp-fn dir]
:or {initial-state {}
timestamp-fn (fn* [] (System/currentTimeMillis))}})
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |