pub struct RedisEnterpriseTemplate { /* private fields */ }
Expand description
Redis Enterprise template for production-grade deployments
Implementations§
Source§impl RedisEnterpriseTemplate
impl RedisEnterpriseTemplate
Sourcepub fn cluster_name(self, name: impl Into<String>) -> Self
pub fn cluster_name(self, name: impl Into<String>) -> Self
Set the cluster name
Sourcepub fn admin_username(self, username: impl Into<String>) -> Self
pub fn admin_username(self, username: impl Into<String>) -> Self
Set the admin username (email format required)
Sourcepub fn admin_password(self, password: impl Into<String>) -> Self
pub fn admin_password(self, password: impl Into<String>) -> Self
Set the admin password (must be strong)
Sourcepub fn accept_eula(self) -> Self
pub fn accept_eula(self) -> Self
Accept the End User License Agreement
Sourcepub fn license_file(self, path: impl Into<String>) -> Self
pub fn license_file(self, path: impl Into<String>) -> Self
Set a license file path
Sourcepub fn database_port_start(self, port: u16) -> Self
pub fn database_port_start(self, port: u16) -> Self
Set the starting port for database endpoints (default: 12000)
Sourcepub fn persistent_path(self, path: impl Into<String>) -> Self
pub fn persistent_path(self, path: impl Into<String>) -> Self
Set custom persistent storage path
Sourcepub fn ephemeral_path(self, path: impl Into<String>) -> Self
pub fn ephemeral_path(self, path: impl Into<String>) -> Self
Set custom ephemeral storage path
Sourcepub fn memory_limit(self, limit: impl Into<String>) -> Self
pub fn memory_limit(self, limit: impl Into<String>) -> Self
Set memory limit for the container
Sourcepub fn with_database(self, name: impl Into<String>) -> Self
pub fn with_database(self, name: impl Into<String>) -> Self
Create an initial database after cluster setup
Sourcepub fn custom_image(
self,
image: impl Into<String>,
tag: impl Into<String>,
) -> Self
pub fn custom_image( self, image: impl Into<String>, tag: impl Into<String>, ) -> Self
Use a custom Redis Enterprise image and tag
§Example
let template = RedisEnterpriseTemplate::new("my-redis")
.custom_image("my-registry/redis-enterprise", "latest")
.platform("linux/arm64")
.accept_eula();
Sourcepub fn platform(self, platform: impl Into<String>) -> Self
pub fn platform(self, platform: impl Into<String>) -> Self
Set the platform for the container (e.g., “linux/arm64”, “linux/amd64”)
This is especially useful for ARM-based Redis Enterprise images on Apple Silicon Macs or ARM servers.
Sourcepub fn bootstrap_timeout(self, timeout: Duration) -> Self
pub fn bootstrap_timeout(self, timeout: Duration) -> Self
Set the bootstrap timeout (default: 60 seconds)
Sourcepub fn bootstrap_retries(self, retries: u32) -> Self
pub fn bootstrap_retries(self, retries: u32) -> Self
Set the number of bootstrap retries (default: 3)
Sourcepub fn api_ready_timeout(self, timeout: Duration) -> Self
pub fn api_ready_timeout(self, timeout: Duration) -> Self
Set the API ready timeout (default: 30 seconds)