From 6240a260b582034970d2ee46da9f5234cf317820 Mon Sep 17 00:00:00 2001 From: "bosun-ai[bot]" <157630444+bosun-ai[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 21:49:01 +0200 Subject: [PATCH] docs(swiftide): documented file swiftide/src/integrations/redis/mod.rs (#23) Co-authored-by: bosun-ai[bot] <157630444+bosun-ai[bot]@users.noreply.github.com> --- swiftide/src/integrations/redis/mod.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/swiftide/src/integrations/redis/mod.rs b/swiftide/src/integrations/redis/mod.rs index 4c50045c..29ba808d 100644 --- a/swiftide/src/integrations/redis/mod.rs +++ b/swiftide/src/integrations/redis/mod.rs @@ -1,3 +1,19 @@ +//! This module provides the integration with Redis for caching nodes in the Swiftide system. +//! +//! The primary component of this module is the `RedisNodeCache`, which is re-exported for use +//! in other parts of the system. The `RedisNodeCache` struct is responsible for managing and +//! caching nodes during the ingestion process, leveraging Redis for efficient storage and retrieval. +//! +//! # Overview +//! +//! The `RedisNodeCache` struct provides methods for: +//! - Connecting to a Redis database +//! - Checking if a node is cached +//! - Setting a node in the cache +//! - Resetting the cache (primarily for testing purposes) +//! +//! This integration is essential for ensuring efficient node management and caching in the Swiftide system. + mod node_cache; pub use node_cache::RedisNodeCache;