Skip to main content

Crate drasi_index_garnet

Crate drasi_index_garnet 

Source
Expand description

Garnet/Redis Index Backend for Drasi

This crate provides a distributed storage backend for Drasi queries using Redis/Garnet.

§Usage

use drasi_index_garnet::GarnetIndexProvider;
use drasi_lib::DrasiLib;
use std::sync::Arc;

let provider = GarnetIndexProvider::new("redis://localhost:6379", None, true);
let drasi = DrasiLib::builder()
    .with_index_provider(Arc::new(provider))
    .build()?;

Modules§

element_index
future_queue
result_index

Structs§

GarnetIndexProvider
Garnet/Redis index backend provider.
GarnetSessionControl
SessionControl implementation backed by GarnetSessionState.
GarnetSessionState
Shared session state for Garnet session-scoped transactions.