* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags | ||
---|---|---|---|---|---|---|---|
pattern | Caching | caching | /patterns/caching/ | Behavioral |
|
Intent
To avoid expensive re-acquisition of resources by not releasing the resources immediately after their use. The resources retain their identity, are kept in some fast-access storage, and are re-used to avoid having to acquire them again.
Class diagram
Applicability
Use the Caching pattern(s) when
- Repetitious acquisition, initialization, and release of the same resource causes unnecessary performance overhead.