Chapter 14: Optimizing Performance Using the Memory Cache
Memory caches optimize performance by reusing earlier results instead of repeating execution of heavy workloads. This chapter starts by showing that Google App Engine’s low-level memory cache (memcache) API is relatively simple to use. Then the chapter explains that implementing a full caching strategy is less simple because of some pitfalls when implementing the serializable interface and because caches need to be maintained. At the end of the chapter, the JCache API (Java Specification Request [JSR] 107) is discussed as an alternative to Google’s low-level memcache API.
Using the Cache API for Basic Purposes
Google provides two APIs for memory caching (or memcache): the low-level API ...