redis-enterprise
A comprehensive Rust client library for the Redis Enterprise REST API.
Features
- Complete coverage of Redis Enterprise REST API endpoints
- Async/await support with tokio
- Strong typing for API requests and responses
- Comprehensive error handling
- Optional Tower service integration for middleware composition
- Support for all Redis Enterprise features including:
- Cluster management and bootstrap
- Database (BDB) operations
- Node management and statistics
- User and role management
- Redis modules
- Active-Active (CRDB) databases
- Monitoring and alerts
Installation
[]
= "0.1.0"
# Optional: Enable Tower service integration
= { = "0.1.0", = ["tower-integration"] }
Quick Start
use EnterpriseClient;
async
Examples
The examples/ directory contains runnable examples demonstrating common use cases:
basic_enterprise.rs- Getting started with cluster connectiondatabase_management.rs- Managing databases and viewing statistics
Run examples with:
# Set your cluster credentials
# For self-signed certificates
# Run an example
Tower Integration
Enable the tower-integration feature to use the client with Tower middleware:
use EnterpriseClient;
use ApiRequest;
use ServiceExt;
async
This enables composition with Tower middleware like circuit breakers, retry, rate limiting, and more.
API Coverage
This library provides 100% coverage of the Redis Enterprise REST API, including:
- Cluster Operations - Bootstrap, configuration, topology
- Database Management - CRUD operations, actions, statistics
- Node Management - Add/remove nodes, statistics, actions
- Security - Users, roles, ACLs, LDAP integration
- Modules - Upload and manage Redis modules
- Monitoring - Stats, alerts, logs, diagnostics
- Active-Active - CRDB management and tasks
- Administration - License, certificates, services
Documentation
For detailed API documentation, see the Redis Enterprise REST API Reference.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.