 
 (defun ycmd-eldoc--teardown ()
   "Reset `ycmd-eldoc--cache'."
-  (setq ycmd-eldoc--cache nil)
+  (ycmd-eldoc--cache-store nil nil)
   (setq ycmd-eldoc--get-type-supported-p t))
 
 ;;;###autoload

          (lambda (text)
            (when text
              (setq text (ycmd--fontify-code text))
              (when symbol
                (setq ycmd-eldoc--cache (list symbol text)))
              text)))))))

;; Source: https://github.com/racer-rust/emacs-racer/blob/master/racer.el
(defun ycmd-eldoc--goto-func-name ()


(defmacro ycmd-eldoc--with-point-at-func-name (body)
  "Move cursor to function name and evluate BODY."
  (declare (indent 0) (debug t))
  `(save-excursion
     (ycmd-eldoc--goto-func-name)
     ,body))
