keyv-better-sqlite3
v1.1.0
Published
> SQLite storage adapter for Keyv
Downloads
8
Maintainers
Readme
keyv-better-sqlite3
SQLite storage adapter for Keyv
SQLite storage adapter for Keyv.
Install
npm install --save keyv keyv-better-sqlite3
Usage
const Keyv = require('keyv');
const KeyvBetterSqlite3 = require('keyv-better-sqlite3');
const keyv = new Keyv({
store: new KeyvBetterSqlite3({
uri: 'sqlite://path/to/database.sqlite'
})
});
You can specify the table
and busyTimeout
option.
e.g:
const keyv = new Keyv({
store: new KeyvBetterSqlite3({
uri: 'sqlite://path/to/database.sqlite',
table: 'cache',
busyTimeout: 10000
})
});
License
MIT ©