Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.11 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.11 KB
layout title folder permalink pumlid categories tags
pattern
Caching
caching
/patterns/caching/
DSRB4OKm2030LhG0m_rrWyWaE0bc-6ZxpujxsbMKUXwSrfSMCVq7OFYKAj5oJsUZIuCr2bq3fEU3WGOdthWTx59rcnZ1fWu3_GqGKXEjm47VIzeeCqV_0m00
Other
Java
Difficulty-Intermediate
Performance

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.

alt text

Applicability

Use the Caching pattern(s) when

  • Repetitious acquisition, initialization, and release of the same resource causes unnecessary performance overhead.

Credits