camel_redis_repo/lib.rs
1//! Redis-backed service repositories for rust-camel.
2//!
3//! This crate provides Redis implementations of the `CacheRepository` and
4//! `IdempotentRepository` abstractions from `camel-api`, reusing the
5//! connection and topology management of `camel-component-redis`.
6//!
7//! Sentinel deployments are supported unconditionally (no feature flag);
8//! TLS is opt-in via the `tls` feature.
9//!
10//! Endpoint configuration types are re-exported so downstream crates do not
11//! need to depend on `camel-component-redis` directly.
12
13pub(crate) mod cache_repo;
14pub(crate) mod connection;
15pub mod error;
16pub(crate) mod executor;
17pub(crate) mod idempotent_repo;
18pub mod keyspace;
19pub(crate) mod payload_store;
20#[cfg(test)]
21pub(crate) mod test_metrics;
22
23pub use cache_repo::RedisCacheRepository;
24pub use cache_repo::{GeoSearchRow, GeoUnit};
25// Re-export for internal use only: the executor and idempotent repository
26// consume it via `crate::is_transient_redis_error`; it is not part of the
27// crate's public surface.
28pub(crate) use camel_component_redis::config::is_transient_redis_error;
29pub use camel_component_redis::{RedisEndpointConfig, SentinelConfig, TopologyKind};
30pub(crate) use error::to_camel_error;
31pub use idempotent_repo::RedisIdempotentRepository;
32pub(crate) use keyspace::namespaced;
33pub(crate) use keyspace::validate_namespace_token;
34pub use payload_store::RedisPayloadStore;