Crate background_jobs_sled

source ·
Expand description

§Background Jobs Sled Storage

An implementation of the Background Jobs Storage trait based on the Sled embedded database

§Usage

use background_jobs::{ServerConfig, sled_storage::Storage};
use sled_extensions::{ConfigBuilder, Db};

let db = Db::start(ConfigBuilder::default().temporary(true).build())?;
let storage = Storage::new(db)?;
let queue_handle = ServerConfig::new(storage).thread_count(8).start();

Structs§

  • The Sled-backed storage implementation

Enums§

  • The error produced by sled storage calls

Type Aliases§

  • A simple alias for Result<T, Error>