Skip to content

Commit f20e3cd

Browse files
Merge pull request #10 from svetlyak40wt/add-clear-all-caches
Added missing clear-all-caches function and made clear-cache-all-function-caches deprecate
2 parents 6a5ada4 + e090fca commit f20e3cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cache.lisp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@
3838
(defmethod purge-cache ((cache-name symbol))
3939
(purge-cache (find-function-cache-for-name cache-name)))
4040

41-
(defun clear-cache-all-function-caches (&optional package)
41+
(defun clear-all-caches (&optional package)
4242
"Clear all the packages we know about. If there is a package mentioned,
4343
clear only those caches whose names are in that package"
4444
(do-caches #'clear-cache :package package))
4545

46+
(defun clear-cache-all-function-caches (&optional package)
47+
(warn "Function clear-cache-all-function-caches deprecated. Use clear-all-caches instead.")
48+
(clear-all-caches package))
49+
4650
(defun purge-all-caches (&optional package)
4751
"Call purge on all matching cache objects. If package is provided, purge
4852
only caches located within that package"

0 commit comments

Comments
 (0)