turbostore

Crates.ioturbostore
lib.rsturbostore
version0.2.0
created_at2025-06-17 01:19:01.043005+00
updated_at2025-06-22 20:11:54.003896+00
descriptionA concurrent, in-memory, in-process, Redis-like storage for Rust.
homepage
repositoryhttps://github.com/Nekidev/turbostore
max_upload_size
id1715059
size101,278
Rafael Bradley (Nekidev)

documentation

README

TurboStore

A concurrent, in-memory, in-process, redis-like storage for Rust.

TurboStore supports multiple data structures, including KV pairs, maps, deques, and sets. It's fast and async-ready thanks to scc and bitcode, and does not limit the types for each data structure.

use turbostore::{TurboStore, Duration};

// This example uses tokio, but the library is runtime-agnostic
async fn main() {
    let store: TurboStore<String> = TurboStore::new();

    // Duration is the TTL. All keys have TTLs since this store is mostly intended to store
    // ephemeral data. Support for non-expiring keys will be added in the future.
    store.set("my_key".to_string(), 1, Duration::minutes(1)).await;

    let value = store.get::<i32>("my_key").await.unwrap();
}

Typed keys, structs, hash maps, sets, deques, and more are supported.

Documentation

Go to docs.rs/turbostore for the full documentation of the crate.

Commit count: 24

cargo fmt