A superfast key-value store with SQLite that uses bun:sqlite and v8 as a fast JSON replacement.
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!
bun add bun-sqlite-key-value
import { BunSqliteKeyValue } from "bun-sqlite-key-value"
const myStore = new BunSqliteKeyValue()
// Write value
myStore.set("myKey", 1234)
// Read value
myStore.get("myKey") // --> 1234
Follow this link to the full documentation of Bun-SQLite-Key-Value.
- Full Documentation
- Installation
- Usage
- Open and Close Database
- Read and Write Values and Items
- Read and Write Binary Files (Images)
- Keys
- Delete Items
- Count Items
- Cache Values with TTL
- Random Values
- Math
- String
- Hash (JavaScript Map)
- List (JavaScript Array)
- Tags (Labels)
- Database Transactions
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. 😃