Liking cljdoc? Tell your friends :D

jepsen.history.sim.cache

Caches histories as EDN on disk.

Caches histories as EDN on disk.
raw docstring

base-dirclj

Directory in which we store cached histories.

Directory in which we store cached histories.
sourceraw docstring

chunk-file!clj

(chunk-file! test chunk-number)

Returns the file for a test and chunk number. Creates parent directory if necessary.

Returns the file for a test and chunk number. Creates parent directory if
necessary.
sourceraw docstring

chunk-sizeclj

How big is each chunk of the history?

How big is each chunk of the history?
sourceraw docstring

clear!clj

(clear!)

Clears out the whole cache.

Clears out the whole cache.
sourceraw docstring

dirclj

(dir test)

Takes a test map and computes the File for the directory we store it in.

Takes a test map and computes the File for the directory we store it in.
sourceraw docstring

loadclj

(load test)

Takes a test, returns test with :history lazily loaded from disk. Returns nil if not cached.

Takes a test, returns test with :history lazily loaded from disk. Returns
nil if not cached.
sourceraw docstring

load-chunkclj

(load-chunk test chunk-number)

Loads a chunk of a test's history into a vector.

Loads a chunk of a test's history into a vector.
sourceraw docstring

read-handlersclj

source

read-handlers*clj

source

reader!clj

(reader! test chunk-number)

Opens a Fressian reader for a test and chunk number.

Opens a Fressian reader for a test and chunk number.
sourceraw docstring

rm-r!clj

(rm-r! f)

Delete file recursively

Delete file recursively
sourceraw docstring

write!clj

(write! test)

Writes a completed test (with :history) to disk. Deletes all test files first. Returns test.

Writes a completed test (with :history) to disk. Deletes all test files
first. Returns test.
sourceraw docstring

write-handlersclj

source

write-handlers*clj

source

writer!clj

(writer! test chunk-number)

Opens a Fressian writer for a test and chunk number.

Opens a Fressian writer for a test and chunk number.
sourceraw docstring

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

× close