Bun-SQLite-Key-Value
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.
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
Links to Some Entries in the Documentation
- 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
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. 😃