Function: cider-jar-contents-cached

cider-jar-contents-cached is a byte-compiled function defined in cider-jar.el.

Signature

(cider-jar-contents-cached JARFILE)

Documentation

Like cider-jar-contents, but cached.

Instead of returning a list of strings this returns a hash table of string keys and values `t`, for quick lookup. JARFILE is the location of the archive.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-jar.el
(defun cider-jar-contents-cached (jarfile)
  "Like cider-jar-contents, but cached.

Instead of returning a list of strings this returns a hash table of string
keys and values `t`, for quick lookup.  JARFILE is the location of the
archive."
  (let ((m (map-elt cider-jar-content-cache jarfile)))
    (if m
        m
      (let ((m (make-hash-table :test #'equal)))
        (seq-do (lambda (path)
                  (puthash path t m))
                (cider-jar-contents jarfile))
        (puthash jarfile m cider-jar-content-cache)
        m))))