@keyvhq/sqlite
v2.1.15
Published
SQLite storage adapter for Keyv
Readme
@keyvhq/sqlite
SQLite storage adapter for Keyv.
Install
npm install --save @keyvhq/core @keyvhq/sqliteUsage
const KeyvSqlite = require('@keyvhq/sqlite')
const Keyv = require('@keyvhq/core')
const keyv = new Keyv({
store: new KeyvSqlite('sqlite://path/to/database.sqlite')
})You can specify the table and busyTimeout option:
const KeyvSqlite = require('@keyvhq/sqlite')
const Keyv = require('@keyvhq/core')
const keyv = new Keyv({
store: new KeyvSqlite('sqlite://path/to/database.sqlite', {
table: 'cache',
busyTimeout: 10000
})
})License
@keyvhq/sqlite © Luke Childs, released under the MIT License. Maintained by Microlink with help from contributors.
microlink.io · GitHub microlinkhq · X @microlinkhq
