Skip to content

felexx90/keyv-sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keyv-sqlite-shrink keyv

Fork of the SQLite storage adapter for Keyv that supports removing expired data.

Install

npm install --save keyv keyv-sqlite-shrink

Usage

const Keyv = require('keyv');
const KeyvSqliteAdapter = require('keyv-sqlite-shrink');

const storage = new KeyvSqliteAdapter({
  uri: 'sqlite://path/to/database.sqlite',
  table: 'myappcache',
  busyTimeout: 10000
});

const keyv = new Keyv({
  store: storage,
  namespace: 'myapp'
});

keyv.on('error', handleConnectionError);

About the busyTimeout option: read.

License

MIT © MySidesTheyAreGone

MIT © Luke Childs

About

SQLite storage adapter for Keyv

Resources

License

Stars

Watchers

Forks

Packages

No packages published