Join us for a deep dive into Guava's new caching APIs, found in com.google.common.cache. We review the entire cache package in depth, describing the behavior of its APIs and explaining the techniques used to implement them. We compare all of the eviction policies provided by the library, giving specific examples of when each one might be appropriate. For all APIs we show real code to illustrate how to interact with them.
Author:
Charles Fry
Charles Fry is a software engineer at Google, where he works full-time on the Java core libraries, externally distributed as Guava. He led the architecture of Guava's new common.cache package, subsequent to taking ownership of MapMaker in 2010.