This service can be used to:
root: Set the working directory of OpenDALendpoint: Set the network address of redis servercluster_endpoints: Set the network address of redis cluster server. This parameter is mutually exclusive with the endpoint parameter.username: Set the username of Redispassword: Set the password for authenticationdb: Set the DB of redisYou can refer to [RedisBuilder]'s docs for more information
use opendal_core::Operator; use opendal_core::Result; use opendal_service_redis::Redis; #[tokio::main] async fn main() -> Result<()> { let mut builder = Redis::default(); // this will build a Operator accessing Redis which runs on tcp://localhost:6379 let op: Operator = Operator::new(builder)?.finish(); Ok(()) }