我想将数据从一种表单存储到高速缓存中,然后将其检索到另一个页表,一次又一次重复这个过程。
最佳答案
SQL lite是处理进程内数据的好方法。
它可以在内存或磁盘文件中维护数据库并对其执行普通查询。
const sqlite3 = require('sqlite3').verbose();
let db = new sqlite3.Database(':memory:');
let db = new sqlite3.Database(':memory:', (err) => {
if (err) {
return console.error(err.message);
}
console.log('Connected to the in-memory SQlite database.');
});
关于node.js - 如何在 Node Express 中将表数据存储在缓存中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30155202/