5.0.1 • Published 12 months ago
@resolid/keyv-sqlite v5.0.1
SQLite store for keyv
A new SQLite cache store for keyv.
Featuring:
- using better-sqlite3
- 100% test coverage and production ready
Installation
npm i @resolid/keyv-sqliteRequirements
- SQLite 3 with better-sqlite3
- Node 18+
Usage
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')}));License
MIT.
Thanks
Thanks to JetBrains for the OSS development license.
5.0.1
12 months ago