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.
(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.
(array n)
An unsynchronized array-backed weak cache set holding n elements.
An unsynchronized array-backed weak cache set holding n elements.
(atomic-array n)
An unsynchronized array-backed weak cache set holding n elements.
An unsynchronized array-backed weak cache set holding n elements.
(nbhs)
An exact cache based on a nonblocking hashset
An exact cache based on a nonblocking hashset
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close