Skip to content

gerold-penz/bun-sqlite-key-value

Repository files navigation

Bun SQLite Key Value

A superfast key-value store with SQLite that uses bun:sqlite and v8 as a fast JSON replacement.

license npm version npm downloads bun:sqlite

Bun's lightning-fast SQLite implementation makes Bun-SQLite-Key-Value perfect for a fast and reliable storage and cache solution with TTL support. You need Bun to be able to use this package.

The ideas for the implementation come from bun-sqlite-cache and bun-kv. Thank you very much!

Installation

bun add bun-sqlite-key-value

Short Example

import { BunSqliteKeyValue } from "bun-sqlite-key-value"
const myStore = new BunSqliteKeyValue()

// Write value
myStore.set("myKey", 1234)

// Read value
myStore.get("myKey") // --> 1234

Full Documentation

Follow this link to the full documentation of Bun-SQLite-Key-Value.

Links to Some Entries in the Documentation

GitHub Stars

Please give this GitHub project a ⭐ if this project is useful to you. Thank you very much! And if you speak German, here is my business homepage: GP-Softwaretechnik Maybe you will find something interesting for you there. 😃

Releases

No releases published

Packages

No packages published