[][src]Crate automaat_processor_redis_command

An Automaat processor to execute Redis commands.

Execute Redis commands in an Automaat-based workflow. The return value of the Redis command is returned as the output of the processor.


Execute the Redis PING command, with the "hello world" argument, and receive the response back as the output of the run.

See the official documentation on PING.

use automaat_core::{Context, Processor};
use automaat_processor_redis_command::RedisCommand;
use url::Url;

let context = Context::new()?;
let redis_url = Url::parse("redis://")?;

let processor = RedisCommand {
    command: "PING".to_owned(),
    arguments: Some(vec!["hello world".to_owned()]),
    url: redis_url

let output = processor.run(&context)?;

assert_eq!(output, Some("hello world".to_owned()));

Package Features

  • juniper – creates a set of objects to be used in GraphQL-based requests/responses.



The processor configuration.



Represents all the ways that RedisCommand can fail.