Back

with-cache (clj)

(source)

macro

(with-cache cache-dir max-retries & body)
Tries to lock cache in the scope of `body`. Retries `max-retries` times while sleeping (2^retry)*25 ms in between. If not succeeded after retries, throws `Exception`.

Examples