Files
MemoryBear/api/app
Ke Sun 4e9b5736b1 feat(cache): Add thread-safe Redis client and enable activity stats cache
- Add get_thread_safe_redis() function with thread-local storage and PID checking to prevent "Future attached to a different loop" errors in Celery thread and prefork pools
- Implement health_check_interval=30 to prevent stale connection errors after fork
- Uncomment and enable ActivityStatsCache module in cache/memory/__init__.py
- Uncomment ActivityStatsCache implementation in activity_stats_cache.py and update to use get_thread_safe_redis()
- Update interest_memory.py to use thread-safe Redis client
- Update write_tools.py to use thread-safe Redis client
- Remove redundant Chinese comments from aioRedis.py for cleaner code
- Ensures safe Redis operations across different execution contexts and Celery worker configurations
2026-03-27 16:54:47 +08:00
..
2026-01-12 15:59:10 +08:00
2026-02-28 18:58:33 +08:00
2026-03-27 14:26:46 +08:00
2026-03-13 14:36:54 +08:00
2026-03-11 10:45:07 +08:00
2026-03-27 14:48:25 +08:00
2026-03-27 14:36:19 +08:00
2026-03-27 14:48:25 +08:00
2026-01-26 11:53:34 +08:00
2025-12-24 20:35:04 +08:00
2026-03-19 17:25:44 +08:00
2026-03-20 19:52:28 +08:00