{"id":23975029,"url":"https://github.com/dan-leech/com.danleech.cordova.plugin.imagecache","last_synced_at":"2025-06-11T01:32:30.684Z","repository":{"id":57203744,"uuid":"162714167","full_name":"dan-leech/com.danleech.cordova.plugin.imagecache","owner":"dan-leech","description":"Cordova Android/iOS Image(file) Cache native without permissions and dependencies","archived":false,"fork":false,"pushed_at":"2018-12-21T13:22:49.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T15:50:55.522Z","etag":null,"topics":["cache","cordova-android","cordova-ios","cordova-plugin","dependency-free","image-processing","native"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dan-leech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-21T12:55:18.000Z","updated_at":"2022-03-21T22:58:57.000Z","dependencies_parsed_at":"2022-09-17T14:52:48.662Z","dependency_job_id":null,"html_url":"https://github.com/dan-leech/com.danleech.cordova.plugin.imagecache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-leech%2Fcom.danleech.cordova.plugin.imagecache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-leech%2Fcom.danleech.cordova.plugin.imagecache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-leech%2Fcom.danleech.cordova.plugin.imagecache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-leech%2Fcom.danleech.cordova.plugin.imagecache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dan-leech","download_url":"https://codeload.github.com/dan-leech/com.danleech.cordova.plugin.imagecache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-leech%2Fcom.danleech.cordova.plugin.imagecache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259181065,"owners_count":22817866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","cordova-android","cordova-ios","cordova-plugin","dependency-free","image-processing","native"],"created_at":"2025-01-07T05:57:00.585Z","updated_at":"2025-06-11T01:32:30.591Z","avatar_url":"https://github.com/dan-leech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordova Image Cache plugin\n\nNative Image Cache plugin for iOS and Android.\n\nThis plugin do not require any permissions or dependencies. It uses temporary folders to store binary representation of your images with timestamps. If timestamps are greater it stores a new image version. Plugin has two levels of cache in browser ram and on the device for increase loading speed.\n\n\n# Install\n```\ncordova plugin add com.danleech.cordova.plugin.imagecache\n```\n\n# Usage\n\n#### Simple:\n```js\nlet p = new Promise((resolve, reject) =\u003e {\n  cordova.plugins.ImageCache.get(imageUrl, timestamp, resolve, () =\u003e {\n    cordova.plugins.ImageCache.store(imageUrl, timestamp, imageUrl, resolve, reject);\n  });\n});\n\np.then(url =\u003e {\n  // already loaded image url\n  let img = new Image();\n  img.src = url;\n})\n```\n#### Firebase Storage\n```js\nlet p = new Promise((resolve, reject) =\u003e {\n  cordova.plugins.ImageCache.get(imageKey, timestamp, resolve, () =\u003e {\n    firebase.storage().refFromURL(imageKey).getDownloadURL()\n        .catch(err =\u003e {\n          reject(err);\n        })\n        .then(url =\u003e {\n          cordova.plugins.ImageCache.store(imageKey, timestamp, url, resolve, reject);\n        });\n  });\n});\n```\n\n# License\nProject is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-leech%2Fcom.danleech.cordova.plugin.imagecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-leech%2Fcom.danleech.cordova.plugin.imagecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-leech%2Fcom.danleech.cordova.plugin.imagecache/lists"}