TradingAgents/tradingagents/dataflows
liuping 1bbe898812 feat: integrate database cache into CLI startup logic
� Cache Integration Enhancements:
- Modify get_cache() to use IntegratedCacheManager by default
- Automatic fallback from database cache to file cache
- Intelligent cache selection based on configuration

� Integration Features:
- IntegratedCacheManager now used in CLI startup
- Supports both database and file-based caching
- Automatic detection of database availability
- Graceful degradation when databases unavailable

 Test Results:
- Cache selection logic:  Pass
- Cache functionality:  Pass
- Database cache available but disabled by default
- File cache working as fallback

� User Experience:
- Default: File-based cache (fast, no setup required)
- Optional: Database cache (enable with MONGODB_ENABLED=true)
- Seamless transition between cache types
- No breaking changes to existing functionality

� Current Status:
- Cache Type: IntegratedCacheManager
- Adaptive Cache: Disabled (databases disabled in .env)
- MongoDB: Disabled by default
- Redis: Disabled by default
- Fallback: Traditional file cache working perfectly

Now users get database cache benefits when enabled,
with automatic fallback to reliable file cache.
2025-07-06 01:52:50 +08:00
..
data_cache feat: integrate database cache into CLI startup logic 2025-07-06 01:52:50 +08:00
__init__.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
adaptive_cache.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
cache_manager.py feat: integrate database cache into CLI startup logic 2025-07-06 01:52:50 +08:00
chinese_finance_utils.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
config.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
db_cache_manager.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
finnhub_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
googlenews_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
integrated_cache.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
interface.py feat: merge requirements.txt and add optional dependencies 2025-07-06 00:50:20 +08:00
optimized_china_data.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
optimized_us_data.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
realtime_news_utils.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
reddit_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
stock_api.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
stock_data_service.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
stockstats_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
tdx_utils.py feat: merge Chinese version features 2025-07-06 00:26:49 +08:00
utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
yfin_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00