reactjs - Electron: How to store data in cache manually
问题描述
I'm seeing a lot of info about clearing the cache on electron app, but not about how to save the data in cache.
This is where the data is cached:
Linux: $XDG_CACHE_HOME or ~/.cache/electron/
MacOS: ~/Library/Caches/electron/
Windows: %LOCALAPPDATA%/electron/Cache or ~/AppData/Local/electron/Cache/
And there are binary files in this location.
Is there a way to save the file in this path?
解决方案
如果您像我一样使用公司代理,并且希望按照https://www.electronjs.org/docs/v14-xy/tutorial/installation#custom-mirrors-and-caches中的说明手动创建缓存,只需使用私人的、不受限制的笔记本电脑在测试应用程序中安装 electron,然后将缓存文件夹复制到您的实际公司机器。自己手动做太麻烦了。
推荐阅读
- swift - Swift 的 ReCaptha 实现
- r - 如何从 ncol 文件创建 igraph 列表?
- python - 跳过不存在数据的 Seaborn 条形图中的条形
- c - 从 C 中具有非传统签名的函数返回二维数组
- c# - 在 azure 上使用 Angular 应用程序部署 Web API2.0
- android - 无法创建 ViewModel 类的实例 原因:java.lang.InstantiationException:java.lang.Class .ViewModel 没有零参数构造函数
- asp.net - 我的 ASP.NET / Visual Basic 代码有什么问题?
- ajax - 从 Storefront 迷你购物车的标题中删除文本“item/items”,启用 ajax
- openxml - 找不到openxml sdk生产力工具
- html - 在编译 ejs 时在 views\home.ejs 中的参数列表之后缺少 )