知识卡片
保存与恢复变量栈
STACK SAVE|WRITE [filename]只写栈顶对象,LOAD|FILE [filename]读入一个对象;DUMP [filename]保存整个栈,FILL [filename]用文件内容替换整个栈。选择单对象还是整栈持久化决定恢复范围,默认文件也不同;恢复整栈会改变当前本地变量集合。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录D:HyperCLI操作参考 · 查看原书依据
.. LOADǀFILE [filename] Reads a single JSON object from disk onto the stack (defaults to hyper.stack) .. SAVEǀWRITE [filename] Writes the top item on the stack to disk (defaults to hyper.stack) .. DUMP [filename] Writes the full stack to disk (defaults to hyper.dump) .. FILL [filename] Replaces the current stack with contents in disk file (defaults to hyper.dump)
参考来源
- 位置:《RESTful Web API Patterns and Practices Cookbook》Appendix D. Using the HyperCLI(来源项目book-sources,源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/app04.xhtml)
- 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。
- 原始内容:.. LOADǀFILE [filename] Reads a single JSON object from disk onto the stack (defaults to hyper.stack) .. SAVEǀWRITE [filename] Writes the top item on the stack to disk (defaults to hyper.stack) .. DUMP [filename] Writes the full stack to disk (defaults to hyper.dump) .. FILL [filename] Replaces the current stack with contents in disk file (defaults to hyper.dump)