Function: cider--running-nrepl-paths
cider--running-nrepl-paths is a byte-compiled function defined in
cider-endpoint.el.
Signature
(cider--running-nrepl-paths)
Documentation
Retrieve project paths of running nREPL servers, with TTL caching.
The cache TTL is controlled by cider-running-nrepl-paths-cache-ttl;
see also cider-clear-running-nrepl-paths-cache.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-endpoint.el
(defun cider--running-nrepl-paths ()
"Retrieve project paths of running nREPL servers, with TTL caching.
The cache TTL is controlled by `cider-running-nrepl-paths-cache-ttl';
see also `cider-clear-running-nrepl-paths-cache'."
(let* ((key default-directory)
(entry (assoc key cider--running-nrepl-paths-cache))
(now (float-time)))
(if (and entry
(> cider-running-nrepl-paths-cache-ttl 0)
(< (- now (cadr entry)) cider-running-nrepl-paths-cache-ttl))
(cddr entry)
(let ((paths (cider--running-nrepl-paths-uncached)))
(setf (alist-get key cider--running-nrepl-paths-cache nil nil #'equal)
(cons now paths))
paths))))