1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Redis integration for the Synaptic framework.
//!
//! This crate provides two Redis-backed implementations:
//!
//! - [`RedisStore`] — implements the [`Store`](synaptic_core::Store) trait for
//! persistent key-value storage with namespace support.
//! - [`RedisCache`] — implements the [`LlmCache`](synaptic_core::LlmCache) trait
//! for caching LLM responses with optional TTL expiration.
//!
//! # Quick start
//!
//! ```rust,no_run
//! use synaptic_redis::{RedisStore, RedisStoreConfig, RedisCache, RedisCacheConfig};
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! // Store
//! let store = RedisStore::from_url("redis://127.0.0.1/")?;
//!
//! // Cache with 1-hour TTL
//! let config = RedisCacheConfig { ttl: Some(3600), ..Default::default() };
//! let cache = RedisCache::from_url_with_config("redis://127.0.0.1/", config)?;
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
pub use ;
// Re-export core traits for convenience.
pub use ;