Module: AppsCache

AppsCache is a singleton that will encapsulate mozApps.mgmt inside and expose neede API to callers. The reason why we need this is because mozApps.mgmt.getAll() costs a lot and the better way to do so is cache them inside this AppManager and automatically update it when install / uninstall event is received.

API:

AppsCache.apps().then(function(apps) { // installed apps in FxOS });

Source: