completion-table-with-cache

completion-table-with-cache is a compiled Lisp function in `minibuffer.el'.

(completion-table-with-cache FUN &optional IGNORE-CASE)

Create dynamic completion table from function FUN, with cache.
This is a wrapper for `completion-table-dynamic' that saves the last
argument-result pair from FUN, so that several lookups with the
same argument (or with an argument that starts with the first one)
only need to call FUN once. This can be useful when FUN performs a
relatively slow operation, such as calling an external process.

When IGNORE-CASE is non-nil, FUN is expected to be case-insensitive.