vue-electron-local-cache
This package is for electron apps. When you safely want to cache images, videos ect. and you won't use the IndexedDB - this is your choice. (IndexedDB only lasts for 50MB)
Usage
It is very simple to use this package. Make sure, electron-renderer is added to the vue-project. Follow these steps:
- Install the package with the command-line:
npm install vue-electron-local-cache
- Add the plugin to your background.js:
- Configure following parameters (listed are defaults):
let options = directory: 'C:/Folder/' replaceOldFile: true // replaces old file without prompt or warning saveAsDialog: false
- Provide online-ressource to cache (custId is to distinguish the different caches)
; ipcRenderer
- Listen to following events:
; ipcRendereripcRendereripcRenderer
- That's it. This plugin can't do anything else.
Development
Feel free to fork this project and/or contribute to this repository. This codebase will be improved, but no more major features will be active added.
Used packages
In this repo, there are several packages used:
- vue.js
- vue/cli
- babel
- eslint