O'Reilly logo

Instant Effective Caching with Ehcache by Daniel Wind

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required