Files
picoclaw/pkg
ex-takashima e4d3650005 feat(media): integrate TTL cleanup into FileMediaStore
Add background TTL-based cleanup (L2 safety net) directly into
FileMediaStore so file deletion and in-memory ref removal happen
atomically under the same mutex, preventing dangling references.

- Add storedAt timestamp and refToScope reverse map to mediaEntry
- Add CleanExpired() for atomic TTL-based expiration
- Add Start()/Stop() for background goroutine lifecycle
- Add MediaCleanupConfig (enabled, max_age, interval) to config
- Wire up in cmd_gateway.go with config-driven defaults
- Add 8 new tests including concurrent cleanup safety

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 21:24:32 +09:00
..
2026-02-20 20:03:11 +02:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-24 10:27:49 +11:00
2026-02-18 21:48:23 +02:00
2026-02-20 22:35:16 +02:00