(cache-get-or-create [c1 c2] key val)
If key is found in cache, return found value, otherwise cache val and return it.
If key is found in cache, return found value, otherwise cache val and return it.
(cache-lookup [c1 c2] key)
Literally lookup key in the cache to return its value.
Literally lookup key in the cache to return its value.
(cache-put [c1 c2] key val)
Put the pair key-val in the cache, replacing previous value if found, and return val.
Put the pair key-val in the cache, replacing previous value if found, and return val.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close