Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored Mar 19, 2024
1 parent 97361cc commit 785f671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ It is thread-safe, and doesn't leak memory.

## Usage
We expose just two functions `new_cache(T, args...; kwargs...)` to create new tracked caches by calling `T(args...; kwargs...)`;
and `clear_all_caches()!` which calls `empty!` on all caches that are tracked (and haven't been GCed already).
and `clear_all_caches!()` which calls `empty!` on all caches that are tracked (and haven't been GCed already).

Generally you would never all `clear_all_caches` in your code, but rather you would call it manually from the REPL while interactively developing.
Generally you would never all `clear_all_caches!` in your code, but rather you would call it manually from the REPL while interactively developing.

Be generally aware that declaring a cache using `new_cache` means someone else (developing some other package) might cause it to be cleared.
By the nature of it being a cache this should always be fine, but exceptions are exceptional.
Expand Down

0 comments on commit 785f671

Please sign in to comment.