O'Reilly logo

Essential App Engine: Building High-Performance Java Apps with Google App Engine by Adriaan de Jonge

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

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

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