# cordova-plugin-cacheclear **Repository Path**: xiaokcc/cordova-plugin-cacheclear ## Basic Information - **Project Name**: cordova-plugin-cacheclear - **Description**: 清除缓存 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-23 - **Last Updated**: 2021-06-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 快速引用 cordova plugin add https://github.com/YIGENB/cordova-plugin-cacheclear **获取缓存** ```javascript cordova.plugins.Cacheclear.getCacheSize(function(res){ console.log("获取成功") }, function(res){ console.log("获取失败") } ) ``` **删除缓存** ```javascript cordova.plugins.Cacheclear.deleteFileCache (function(res){ console.log("成功") }, function(res){ console.log("失败") } ) ```