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
Redis implements the following Swiftide
traits:
NodeCache
Persist
MessageHistory
Additionally it provides various helper and utility functions for managing the Redis connection and key management. The connection is managed using a connection manager. When cloned, the connection manager is shared across all instances.
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.- Redis
Builder - Builder for
Redis
.
Enums§
- Redis
Builder Error - Error type for RedisBuilder