Module redis

Source
Available on crate feature redis only.
Expand description

This module provides the integration with Redis for caching nodes in the Swiftide system.

The primary component of this module is the Redis, which is re-exported for use in other parts of the system. The Redis struct is responsible for managing and caching nodes during the indexing process, leveraging Redis for efficient storage and retrieval.

§Overview

The Redis 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.

Structs§

Redis
Redis provides a caching mechanism for nodes using Redis. It helps in optimizing the indexing process by skipping nodes that have already been processed.
RedisBuilder
Builder for Redis.

Enums§

RedisBuilderError
Error type for RedisBuilder