Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Package com.google.appengine.api.memcache

Provides fast but unreliable data storage, also accessible via a JCache interface.

See: Description

Package com.google.appengine.api.memcache Description

Provides fast but unreliable data storage, also accessible via a JCache interface. Objects may be stored in the cache with an explicit expiration time, but may also be evicted before that expiration to make room for newer, more active entries.

The cache is accessed via a MemcacheService object, obtained from the MemcacheServiceFactory . It offers the cache as a map from key Object to value Object .

In the Development Server, the system property memcache.maxsize can be set to limit the available cache, taking values like "100M" (the default), "10K", or "768" (bytes).

Because the cache offers best-effort data storage, by default most errors are treated as a cache miss. More explicit error handling can be installed via MemcacheService.setErrorHandler(ErrorHandler) .

See Also:
MemcacheService , The Memcache Java API in the Google App Engine Developer's Guide ., JCache API