fred 10.1.0

An async client for Redis and Valkey.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;
use crate::{protocol::command::CommandKind, types::*};
use bytes_utils::Str;

ok_cmd!(config_resetstat, ConfigResetStat);
ok_cmd!(config_rewrite, ConfigRewrite);

pub async fn config_get<C: ClientLike>(client: &C, parameter: Str) -> Result<Value, Error> {
  one_arg_values_cmd(client, CommandKind::ConfigGet, parameter.into()).await
}

pub async fn config_set<C: ClientLike>(client: &C, parameter: Str, value: Value) -> Result<(), Error> {
  args_ok_cmd(client, CommandKind::ConfigSet, vec![parameter.into(), value]).await
}