ponshu-room-lite/lib
Ponshu Developer 2890b6cb6f refactor: replace disk cache with in-memory session cache (v1.0.33)
Analysis cache redesign:
- Remove Hive persistence from AnalysisCacheService entirely
- Use Map<String, SakeAnalysisResult> in-memory instead of Hive boxes
- Cache now lives only for the duration of an app session; restart always
  produces a fresh analysis — no stale misidentifications can persist
- Remove Hive init(), TTL/cleanupExpired(), getCachedByBrand() dead code
- API surface unchanged: callers (gemini_service, dev_menu) need no edits
- main.dart: delete legacy Hive boxes (analysis_cache_v1, brand_index_v1)
  from disk on startup for existing users
- dev_menu_screen: update cache description text to reflect new behavior

Rationale:
- Camera captures always produce unique files -> cache hit rate was ~0%
- Each user supplies their own Gemini API key -> no shared cost benefit
- Persistent wrong results (e.g. misrecognized brand names) could survive
  up to 30 days under the old design
- Different sake editions photographed separately have different hashes
  and were never affected by the cache in the first place

Made-with: Cursor
2026-04-12 08:13:18 +09:00
..
constants feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
l10n feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
models fix: code review fixes — data integrity, safety, architecture 2026-04-10 08:26:53 +09:00
providers refactor: apply critical code review fixes 2026-04-12 00:24:57 +09:00
screens refactor: replace disk cache with in-memory session cache (v1.0.33) 2026-04-12 08:13:18 +09:00
services refactor: replace disk cache with in-memory session cache (v1.0.33) 2026-04-12 08:13:18 +09:00
theme feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
utils feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
widgets feat: ライセンス管理システムを追加(Pro機能解放型) 2026-04-11 00:05:53 +09:00
main.dart refactor: replace disk cache with in-memory session cache (v1.0.33) 2026-04-12 08:13:18 +09:00
secrets.dart feat: ライセンス検証をVPSエンドポイントへ移行 2026-04-11 00:16:52 +09:00
secrets.local.dart.example feat: Add Bearer Token authentication to AI Proxy and disable CORS 2026-02-16 11:34:00 +09:00