/durable-atom

A file-backed, durable atom for Clojure

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

Build Status Clojars Project

durable-atom

A Clojure library providing a disk-backed, durable atom implementation

Usage

It works like an atom, but instead of an initial value you give it a file path.

(require '[durable-atom.core :refer [durable-atom]])
(def a (durable-atom "/some/file/path.edn"))
(reset! a {:foo "bar"})

License

Copyright © 2016 Stephen Sloan

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.