Function: pdf-cache--data-put

pdf-cache--data-put is a natively compiled function defined in pdf-cache.el.

Signature

(pdf-cache--data-put KEY VALUE &optional PAGE)

Documentation

Put KEY with VALUE in the cache of PAGE, return value.

Source Code

;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-cache.el
(defun pdf-cache--data-put (key value &optional page)
  "Put KEY with VALUE in the cache of PAGE, return value."
  (pdf-cache--initialize)
  (puthash page (cons (cons key value)
                      (assq-delete-all
                       key
                       (gethash page pdf-cache--data)))
           pdf-cache--data)
  value)