Expand description
Provides a unified storage abstraction with multiple backend implementations (sled, redis, redis-cluster).
This module defines generic storage interfaces (StorageDB
, Map
, List
) and implements them
for different storage backends. It includes configuration handling, initialization functions,
and common storage operations with support for expiration and batch operations.
Structs§
- Config
- Configuration structure for storage system
- Redis
Cluster Config - Configuration for Redis storage
- Redis
Cluster StorageDB - Redis storage database implementation
- Redis
Config - Configuration for Redis storage
- Redis
StorageDB - Redis storage database implementation
- Sled
Config - Configuration for Sled storage backend
- Sled
StorageDB - Main database handle for Sled storage
Enums§
- Default
StorageDB - Unified storage backend enum (dispatches to concrete implementations)
- Storage
List - Unified list implementation enum
- Storage
Map - Unified map implementation enum
- Storage
Type - Enum representing available storage backend types
Traits§
- List
- List storage operations
- Map
- Map (dictionary) storage operations
- StorageDB
- Core storage database operations
Functions§
- init_db
- Initializes the database based on provided configuration
Type Aliases§
- Result
- Custom result type for storage operations