keyvalue_redis_provider/
main.rs

1//! Redis implementation for wrpc:keyvalue.
2//!
3//! This implementation is multi-threaded and operations between different actors
4//! use different connections and can run in parallel.
5//! A single connection is shared by all instances of the same component id (public key),
6//! so there may be some brief lock contention if several instances of the same component
7//! are simultaneously attempting to communicate with redis. See documentation
8//! on the [exec](#exec) function for more information.
9
10use anyhow::Context as _;
11
12#[tokio::main]
13async fn main() -> anyhow::Result<()> {
14    wasmcloud_provider_keyvalue_redis::run()
15        .await
16        .context("failed to run provider")?;
17    eprintln!("KVRedis provider exiting");
18    Ok(())
19}