"""
Redis utilities for Bakery-IA platform
Provides Redis connection management and rate limiting
"""

from shared.redis_utils.client import (
    RedisConnectionManager,
    get_redis_manager,
    initialize_redis,
    get_redis_client,
    close_redis,
    redis_context,
    set_with_ttl,
    get_value,
    increment_counter,
    get_keys_pattern,
    get_ssl_kwargs_for_url,
)

__all__ = [
    # Connection management (RedisConnectionManager.create() is recommended)
    "RedisConnectionManager",
    "get_redis_manager",
    "initialize_redis",
    "get_redis_client",
    "close_redis",
    "redis_context",
    "get_ssl_kwargs_for_url",

    # Convenience functions
    "set_with_ttl",
    "get_value",
    "increment_counter",
    "get_keys_pattern",
]
