(create reduce-fn init-state data-dir)
(create reduce-fn init-state data-dir opts)
Creates a file-backed stateful-thing.
Available opts:
Creates a file-backed stateful-thing. Available opts: - :prefix the prefix for filenames (default "data-") - :max-file-size the size, in bytes, which triggers rolling over to a new file. the files will not be smaller than this amount, but the amount of overage is bounded by the size of the events. Default is 200000. - :cache-state? whether state cache files will be written when rolling over the files. Default is true. - :edn-options a map of options passed to clojure.edn/read, e.g. to provide particular data readers - :puget-options a map of options passed to puget, e.g. to print particular data literal tags
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close