| โฌ ๏ธ Back | ๐ Docs Root |
The RedisContainer is a centralized entry point for all Redis-related managers and services. It provides a unified interface for the botโs data persistence layer.
Located in: src/telegram_bot/infrastructure/redis/container.py
This container is initialized once and injected into the botโs dependency injection (DI) system, making it accessible to all orchestrators and services.
service: RedisService: A base wrapper around the Redis client, providing common operations like set_value, get_value, and delete_key.sender: SenderManager: Manages UI coordinates (chat IDs, message IDs) to track and update bot messages.appointment_cache: AppointmentCacheManager: Handles temporary caching of booking data for notifications and workers.# Accessing the container from an orchestrator
await self.container.redis.appointment_cache.save(appointment_id, data)
await self.container.redis.sender.save_coordinates(chat_id, message_id)