Function: password-cache-add
password-cache-add is a byte-compiled function defined in
password-cache.el.gz.
Signature
(password-cache-add KEY PASSWORD)
Documentation
Add password to cache.
The password is removed by a timer after password-cache-expiry seconds.
Source Code
;; Defined in /usr/src/emacs/lisp/password-cache.el.gz
(defun password-cache-add (key password)
"Add password to cache.
The password is removed by a timer after `password-cache-expiry' seconds."
(when (and password-cache-expiry
(eq (gethash key password-data 'password-cache-no-data)
'password-cache-no-data))
(run-at-time password-cache-expiry nil
#'password-cache-remove
key))
(puthash key password password-data)
nil)