This package has been deprecated

Author message:

dead package

keyv-sqlite-shrink

1.2.12 • Public • Published

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

Package Sidebar

Install

npm i keyv-sqlite-shrink

Weekly Downloads

11

Version

1.2.12

License

MIT

Last publish

Collaborators

  • mysidestheyaregone