Liking cljdoc? Tell your friends :D

com.gfredericks.webscale


createclj

(create reduce-fn init-state data-dir)
(create reduce-fn init-state data-dir 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
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
sourceraw docstring

default-optsclj

source

read-edn-from-fileclj

(read-edn-from-file opts file)
source

update!clj

(update! ag ev)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close