Appendix A. Core Concepts

This appendix exposes the cache basics every developer should be familiar with. This is solely intended to provide a synthesized theoretical background.


Cache is a component that transparently stores data so that future requests for that data can be served faster.

 --Source: Wikipedia

Cache is a simple concept really; you may be applying it and probably don't realize it. For example, every time you query a database result for the customer's name and store that value in the session object, you are applying caching techniques. Simply put, your application does not need to query the database every single time that it needs that same value. Instead, it just retrieves it from the session object (in-memory), which as you might ...

Get Instant Effective Caching with Ehcache now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.