function | since v1.10.753 | Edit |
(read-analysis-cache cache-file)
Read an analysis cache.
(defn read-analysis-cache
[cache-file]
(case (util/ext cache-file)
"edn" (edn/read-string (slurp cache-file))
"json" (let [{:keys [reader read]} @ana/transit]
(with-open [is (io/input-stream cache-file)]
(read (reader is :json ana/transit-read-opts))))))