Skip to content

huijiewei/keyv-sqlite

Repository files navigation

SQLite store for keyv

A new SQLite cache store for keyv.

Featuring:

Installation

npm i @resolid/keyv-sqlite

Requirements

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.

JetBrain