Function: projection--cache-get

projection--cache-get is a natively compiled function defined in projection-core-cache.el.

Signature

(projection--cache-get PROJECT KEY &optional CACHE)

Documentation

Retrieve a value with KEY from the projection cache for PROJECT.

When CACHE is given retrieve the entry from CACHE instead of projection--project-cache. Set PROJECT to 'query to auto find the current project.

Source Code

;; Defined in /nix/store/j6y921qbdmdqxjnd43iibapbig3p4hai-emacs-packages-deps/share/emacs/site-lisp/elpa/projection-20260614.1822/projection-core-cache.el
(defun projection--cache-get (project key &optional cache)
  "Retrieve a value with KEY from the `projection' cache for PROJECT.
When CACHE is given retrieve the entry from CACHE instead of
`projection--project-cache'. Set PROJECT to \\='query to auto find
the current project."
  (or cache (setq cache projection--project-cache))
  (when (eq project 'query)
    (setq project (projection--current-project)))
  (alist-get key (gethash (projection--cache-key project) cache)))