cache Object

This object is intended to provide local storage for data to speed up applications

Description:

This object is intended to provide local storage for data to speed up applications. It can be used as in conjunction with, or as an alternative to the HTML5 local database. Its methods provide features similar to browser cookies and file caching.

For cookies, the intention is that you would use setCookie to save string data in name-value pairs. Cookies persist between application sessions. Data values may be retrieved using the getCookie command or from the getCookieList command as soon as the "intel.xdk.device.ready" event is fired.

The media cache commands are meant to provide quicker access to files such as videos and images. Adding files to the media cache will expedite access to them when the application runs. These are files that are cached across sessions and are not in your application bundle. See the section on events below for more information about events fired from the cache section of intel.xdk.

Methods:

Events:

Version:

This object is available in appMobi Version 3.0.0

Einzelheiten zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.