Function: projectile-doctor--cache-string

projectile-doctor--cache-string is a byte-compiled function defined in projectile.el.

Signature

(projectile-doctor--cache-string DATA)

Documentation

Return the cache-state line of the report DATA.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-doctor--cache-string (data)
  "Return the cache-state line of the report DATA."
  (let ((age (plist-get data :cache-age))
        (expire (plist-get data :cache-expire)))
    (cond
     ((null age) "not cached")
     (expire (format "cached %ds ago (expires after %ds)" age expire))
     (t (format "cached %ds ago (never expires)" age)))))