vermilionsands:frostflower

A local durable atom backend for duratom.


Keywords
clojure
License
EPL-2.0

Documentation

frostflower

Additional local file backend for duratom.

Frostflower's file backend does not use agent like duratom does, and won't return from swap! before the write is completed.

Dependency

Clojars Project

Usage

There is an additional backend dispatch for :sync-local-file key.

;; require frostflower to make the additional dispatch available
(require '[vermilionsands.frostflower :as frostflower])
(require '[duratom.core :as duratom])

(duratom :sync-local-file
         :file-path "/home/..."
         :init {:x 1 :y 2})

License

Copyright © 2017 vermilionsands

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