A new SQLite cache store for keyv.
- using better-sqlite3
- 100% test coverage and production ready
npm i @resolid/keyv-sqlite
- SQLite 3 with better-sqlite3
- Node 18+
import { KeyvSqlite } from '@resolid/keyv-sqlite';
import Keyv from "keyv";
import { join } from 'node:path';
// SQLite :memory: cache store
const keyv = new Keyv(new KeyvSqlite());
// On disk cache on caches table
const keyv = new Keyv(new KeyvSqlite({uri: join(process.cwd(), 'cache.sqlite3')}));
MIT.
Thanks to JetBrains for the OSS development license.