Per-feed state on disk: seen item keys, validators, and when each feed was last polled. One EDN file, written atomically, readable only by its owner.
A missing or unreadable file is an empty state rather than an error: the worst case is that items already filed are offered again, and the memory sink refuses duplicates by content hash.
Per-feed state on disk: seen item keys, validators, and when each feed was last polled. One EDN file, written atomically, readable only by its owner. A missing or unreadable file is an empty state rather than an error: the worst case is that items already filed are offered again, and the memory sink refuses duplicates by content hash.
(load-state path)The state in path, or {} when it is absent, unreadable or malformed.
The state in `path`, or {} when it is absent, unreadable or malformed.
(save-state! path state)Write state to path via a sibling temp file and an atomic move.
Write `state` to `path` via a sibling temp file and an atomic move.
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 |