Read and atomically replace JSON state files.
Read and atomically replace JSON state files.
(delete! file)Remove a JSON state file. Return true when the file existed.
Remove a JSON state file. Return true when the file existed.
(read-json file)Read JSON with string keys. Return nil when the file is absent.
Read JSON with string keys. Return nil when the file is absent.
(write! file value)(write! file value private?)Atomically replace a JSON state file. Keep its mode, or use 0600 for a secret.
Atomically replace a JSON state file. Keep its mode, or use 0600 for a secret.
(write-with-mode! file value private? mode-source)Atomically write JSON with the mode of mode-source, or 0600 for a secret.
Atomically write JSON with the mode of `mode-source`, or 0600 for a secret.
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 |