(call-with-db thunk)
(defstate sym default)
Define a global ref managed by Instadump. The supplied default value is used if the variable cannot be found in the database. Otherwise, the value stored in the database is used.
Define a global ref managed by Instadump. The supplied default value is used if the variable cannot be found in the database. Otherwise, the value stored in the database is used.
(getkey key default)
(reload-all-global-state!)
Direct Instadump to revert all variables created by defstate to the state saved by the last invocation of save-all-global-state!. Will fail if any variables cannot be restored (e.g. if some variables have never been saved before).
Direct Instadump to revert all variables created by defstate to the state saved by the last invocation of save-all-global-state!. Will fail if any variables cannot be restored (e.g. if some variables have never been saved before).
(save-all-global-state!)
Direct Instadump to dump a snapshot of all variables created by defstate into the database. save-all-global-state! runs in an implicit transaction in order to ensure data consistency.
Direct Instadump to dump a snapshot of all variables created by defstate into the database. save-all-global-state! runs in an implicit transaction in order to ensure data consistency.
(setup-instadump! dirname)
Set up the Instadump database at the file system location indicated by dirname.
Set up the Instadump database at the file system location indicated by dirname.
(with-db & body)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close