(get cache key)
Get object associated with @key from @cache.
Get object associated with @key from @cache.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close