Liking cljdoc? Tell your friends :D

knossos.weak-cache-set

A weakly consistent concurrent cache. We need an efficient way for many threads to let each other know what parts of the state space have already been explored.

With thanks to Coda Hale for his advice.

A weakly consistent concurrent cache. We need an efficient way for many
threads to let each other know what parts of the state space have already
been explored.

With thanks to Coda Hale for his advice.
raw docstring

add!clj

(add! cache x)

Add an element to the cache. Returns true if the cache did not already contain x.

Add an element to the cache. Returns true if the cache did not already
contain x.
sourceraw docstring

arrayclj

(array n)

An unsynchronized array-backed weak cache set holding n elements.

An unsynchronized array-backed weak cache set holding n elements.
sourceraw docstring

atomic-arrayclj

(atomic-array n)

An unsynchronized array-backed weak cache set holding n elements.

An unsynchronized array-backed weak cache set holding n elements.
sourceraw docstring

clear!clj

(clear! cache)

Reset the cache

Reset the cache
sourceraw docstring

nbhsclj

(nbhs)

An exact cache based on a nonblocking hashset

An exact cache based on a nonblocking hashset
sourceraw docstring

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

× close