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 <[email protected]>
  • Loading branch information
Lotes and montymxb committed Aug 7, 2024
1 parent 0cd2c12 commit a55dafc
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 @@ -9,7 +9,7 @@ You have parsed a document and you would like to execute some computation on the

## How to solve it?

For data that depends on the lifetime of a document or even the entire workspace, Langium has several kinds of caches.
For data that depends on the lifetime of a document or even the entire workspace, Langium has several kinds of caches:

* the document cache saves key-value-pairs of given types `K` and `V` for each document. If the document gets changed or deleted the cache gets cleared automatically for the single files
* the workspace cache also saves key-value-pairs of given types `K` and `V`, but gets cleared entirely when something in the workspace gets changed
Expand Down

0 comments on commit a55dafc

Please sign in to comment.