redis-actor

Installation

Add this package to Cargo.toml of your project. (Check https://crates.io/crates/redis-actor for right version)

toml [dependencies] actix = "0.9.0" redis-actor = "0.2.0"

Features

Get started

```rust use actix::{Arbiter, Addr, Supervisor}; use redisactor::{RedisActor, RedisCmd, bb8redis::redis::RedisResult};

let arb = Arbiter::new(); let redis_url = "http://127.0.0.1:6379/0"

let addr: Addr = Supervisor::startinarbiter( &arb, move || RedisActor::new(redisurl).unwrap() );

addr.send(RedisCmd::::Set("hello".toowned(), " world!".toowned()).await; ```