cordova-plugin-cacheinfo

1.0.0 • Public • Published

cordova-plugin-cacheinfo

Webview cache informations

iOS only at the moment.

Installation

Install the plugin :

cordova plugin add --save cordova-plugin-cacheinfo

Usage

cordova.plugins.CacheInfo.getInfos(function(results) {
    console.log(results);
});

returns

{
  "MemoryCache": 849913,
  "MemoryCapacity": 134217728,
  "DiskCache": 312648,
  "DiskCapacity": 536870912
}

reset Safari cache : cordova.plugins.CacheInfo.clear()

Licence MIT

Code distributed under MIT licence. Contributions welcome.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cordova-plugin-cacheinfo

      Weekly Downloads

      1

      Version

      1.0.0

      License

      MIT

      Last publish

      Collaborators

      • revolunet