(locking-fn f)
Returns a function that will hold a lock while calling the f
function.
Returns a function that will hold a lock while calling the `f` function.
(memoize-ttl f)
Returns a function that will cache the f
function.
The function f
must return a map containing two keys:
Returns a function that will cache the `f` function. The function `f` must return a map containing two keys: - :val the value that this function will cache and return. - :ttl number of seconds for the return value to live.
(now-millis)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close