https://github.com/vermilionsands/frostflower
Synchronized local file backend for Clojure/duratom.
https://github.com/vermilionsands/frostflower
clojure
Last synced: 7 days ago
JSON representation
Synchronized local file backend for Clojure/duratom.
- Host: GitHub
- URL: https://github.com/vermilionsands/frostflower
- Owner: vermilionsands
- License: epl-1.0
- Created: 2017-10-28T18:39:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T18:51:10.000Z (over 8 years ago)
- Last Synced: 2026-06-19T06:13:02.285Z (30 days ago)
- Topics: clojure
- Language: Clojure
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# frostflower
Additional local file backend for [duratom](https://github.com/jimpil/duratom).
Frostflower's file backend does not use `agent` like `duratom` does, and won't return
from `swap!` before the write is completed.
## Dependency
[](https://clojars.org/vermilionsands/frostflower)
## Usage
There is an additional backend dispatch for `:sync-local-file` key.
```clj
;; 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.