ponshu-room-lite/lib/services
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
..
analysis_cache_service.dart refactor: replace disk cache with in-memory session cache (v1.0.33) 2026-04-12 08:13:18 +09:00
backup_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
device_service.dart fix: 外部コードレビュー指摘の修正4件 2026-04-11 08:14:37 +09:00
draft_service.dart fix: address remaining code audit findings and bump to v1.0.32 2026-04-12 07:25:24 +09:00
gamification_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
gemini_exceptions.dart fix: code review fixes — data integrity, safety, architecture 2026-04-10 08:26:53 +09:00
gemini_service.dart fix: address remaining code audit findings and bump to v1.0.32 2026-04-12 07:25:24 +09:00
image_batch_compression_service.dart feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
image_compression_service.dart feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
image_path_repair_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
level_calculator.dart Fix compilation error in SakePriceDialog 2026-01-13 18:13:23 +09:00
license_service.dart fix: 外部コードレビュー指摘の修正4件 2026-04-11 08:14:37 +09:00
mbti_compatibility_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
mbti_diagnosis_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
mbti_types.dart feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
migration_service.dart fix: address remaining code audit findings and bump to v1.0.32 2026-04-12 07:25:24 +09:00
network_service.dart fix: address remaining code audit findings and bump to v1.0.32 2026-04-12 07:25:24 +09:00
pdf_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
pricing_calculator.dart v1.0.8 - Original (Ponshu Room Lite MVP Complete) 2026-01-11 17:17:29 +09:00
pricing_helper.dart v1.0.8 - Original (Ponshu Room Lite MVP Complete) 2026-01-11 17:17:29 +09:00
sake_recommendation_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
sakenowa_auto_matching_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
sakenowa_recommendation_service.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
sakenowa_service.dart fix: address remaining code audit findings and bump to v1.0.32 2026-04-12 07:25:24 +09:00
sakenowa_similar_recommendation_service.dart fix: Resolve all flutter analyze warnings (39 -> 0 issues) 2026-02-21 10:32:02 +09:00
shuko_diagnosis_service.dart feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00