Function: password-cache-remove

password-cache-remove is a byte-compiled function defined in password-cache.el.gz.

Signature

(password-cache-remove KEY)

Documentation

Remove password indexed by KEY from password cache.

This is typically run by a timer setup from password-cache-add, but can be invoked at any time to forcefully remove passwords from the cache. This may be useful when it has been detected that a password is invalid, so that password-read query the user again.

Source Code

;; Defined in /usr/src/emacs/lisp/password-cache.el.gz
(defun password-cache-remove (key)
  "Remove password indexed by KEY from password cache.
This is typically run by a timer setup from `password-cache-add',
but can be invoked at any time to forcefully remove passwords
from the cache.  This may be useful when it has been detected
that a password is invalid, so that `password-read' query the
user again."
  (let ((password (gethash key password-data)))
    (when (stringp password)
      (clear-string password))
    (remhash key password-data)))