Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /dislovelhl_enhanced-agent-bus /_compat /redis_config.py
| """Shim for src.core.shared.redis_config.""" | |
| from __future__ import annotations | |
| from typing import TYPE_CHECKING, Any | |
| if TYPE_CHECKING: | |
| from src.core.shared.redis_config import * # noqa: F403 | |
| else: | |
| try: | |
| from src.core.shared.redis_config import * # noqa: F403 | |
| except ImportError: | |
| class RedisConfig: | |
| url: str = "redis://localhost:6379" | |
| db: int = 0 | |
| max_connections: int = 10 | |
| socket_timeout: float = 5.0 | |
| decode_responses: bool = True | |
| def __init__(self, **kwargs: Any) -> None: | |
| for k, v in kwargs.items(): | |
| setattr(self, k, v) | |
| def get_redis_url(db: int = 0) -> str: | |
| return f"redis://localhost:6379/{db}" | |
| def get_redis_config() -> RedisConfig: | |
| return RedisConfig() | |
| async def get_redis_client(**kwargs: Any) -> None: | |
| """Stub: returns None in standalone mode (no Redis).""" | |
| return None | |
Xet Storage Details
- Size:
- 995 Bytes
- Xet hash:
- b6d6f33bc0359bdb0b0e9cfd2bf902edc6ad6aa4834eedb2a7b3ed9ae9d6dde1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.