Auto-mode commit 7aa33cd accidentally deleted 78 files (14,814 lines) during M005
execution. Subsequent commits rebuilt some frontend files but backend/, alembic/,
tests/, whisper/, docker configs, and prompts were never restored in this repo.
This commit restores the full project tree by syncing from ub01's working directory,
which has all M001-M007 features running in production containers.
Restored: backend/ (config, models, routers, database, redis, search_service, worker),
alembic/ (6 migrations), docker/ (Dockerfiles, nginx, compose), prompts/ (4 stages),
tests/, whisper/, README.md, .env.example, chrysopedia-spec.md
15 lines
446 B
Python
15 lines
446 B
Python
"""Async Redis client helper for Chrysopedia."""
|
|
|
|
import redis.asyncio as aioredis
|
|
|
|
from config import get_settings
|
|
|
|
|
|
async def get_redis() -> aioredis.Redis:
|
|
"""Return an async Redis client from the configured URL.
|
|
|
|
Callers should close the connection when done, or use it
|
|
as a short-lived client within a request handler.
|
|
"""
|
|
settings = get_settings()
|
|
return aioredis.from_url(settings.redis_url, decode_responses=True)
|