SQLite storage adapter for Keyv
SQLite storage adapter for Keyv.
npm install --save keyv @keyv/sqlite
const Keyv = require('keyv');
const keyv = new Keyv('sqlite://path/to/database.sqlite');
keyv.on('error', handleConnectionError);
You can specify the table
and busyTimeout
option.
e.g:
const keyv = new Keyv('sqlite://path/to/database.sqlite', {
table: 'cache',
busyTimeout: 10000
});
MIT © Luke Childs