Liking cljdoc? Tell your friends :D

pool.cache


exists?clj

(exists? cache key)
source

getclj

(get cache key)

Get object associated with @key from @cache.

Get object associated with @key from @cache.
sourceraw docstring

get-cacheclj

(get-cache make-fn & {:keys [destroy] :or {destroy ignore}})

Returns a new threadsafe cache for costly objects. Safeguards against multiple threads trying to create object for same key. Take a single arity function @make-fn takes key for object creation which. Other optional kwarg are :destroy double arity function which take key and object.

Returns a new threadsafe cache for costly objects.
Safeguards against multiple threads trying to create object for same key.
Take a single arity function @make-fn takes key for object creation which.
Other optional kwarg are
:destroy double arity function which take key and object.
sourceraw docstring

purgeclj

(purge cache key)
source

shutdown-hookcljmacro

(shutdown-hook & body)
source

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

× close