localStorage
稳定性: 1.0 - 早期开发阶段。
localStorage 的浏览器兼容实现。数据存储在 --localstorage-file 命令行标志指定的文件中,且未加密。可存储的最大数据量为 10 MB。通过 Web Storage API 以外的方式修改这些数据不受支持。使用 --experimental-webstorage 命令行标志启用此 API。在服务器环境中使用时,localStorage 数据不会按用户或请求存储,而是所有用户和请求共享。
🌐 A browser-compatible implementation of localStorage. Data is stored
unencrypted in the file specified by the --localstorage-file CLI flag.
The maximum amount of data that can be stored is 10 MB.
Any modification of this data outside of the Web Storage API is not supported.
Enable this API with the --experimental-webstorage CLI flag.
localStorage data is not stored per user or per request when used in the context
of a server, it is shared across all users and requests.