Skip to content

Commit

Permalink
Update hugo/content/docs/recipes/utilities/caches.md
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Friedman Wilson <benjamin.wilson@typefox.io>
  • Loading branch information
Lotes and montymxb authored Aug 7, 2024
1 parent bc555be commit aab190e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugo/content/docs/recipes/utilities/caches.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ person Obelix
## Last words

Caching can improve the performance of your language server. It is especially useful for computations that are expensive to calculate. The `DocumentCache` and `WorkspaceCache` are the most common caches to use. The `ContextCache` is useful if you need to store data for a specific context object. If you only need a key-value store, you can use the `SimpleCache`.
All of them are disposable compared to a simple `Map<K, V>`. If you dispose them by calling `dispose()` the entries will be removed and the memory will be freed.
All of these caches are disposable compared to a simple `Map<K, V>`. If you dispose them by calling `dispose()` the entries will be removed and the memory will be freed.

## Appendix

Expand Down

0 comments on commit aab190e

Please sign in to comment.