Liking cljdoc? Tell your friends :D

ivarref.memoize-ttl


locking-fnclj

(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.
raw docstring

memoize-ttlclj

(memoize-ttl f)

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.
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.
raw docstring

now-millisclj

(now-millis)

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

× close