How does the cache work?

What is cache? The word cache is actually very generic and hides a lot of different flavors, which don't target the same needs.

However, all cache implementations share a common basis in terms of principles:

  • The data is accessible by key
  • The cache provides some eviction mechanisms representing the validity of the stored values
  • The cache relies on memory storage first

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.