(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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |