VisitorbookCache.ktAbstractCache for automatic refresh lifecycle. Provides VisitorbookInfo summaries without querying the database per visitorbook display.On refresh(), the cache runs in a read-only transaction and:
VisitorbookInfo.lastDateOfVisit (first/latest entry by date desc), latestArrived/latestDeparted, and numberOfVisits (count).setExpired(id) updates a single visitorbook's info without full cache refresh, using the queryVisitEntries named query filtered by visitorbook ID. This is called after any insert/update/delete of a visitorbook entry via VisitorbookService.
Access to visitorbookMap is synchronized. The refresh() method works with a new map and atomically replaces the reference, avoiding stale reads.
868d6abb7 2025 -> 2026 63081666f Source file headers: 2024-> 2025. 2c9ea00ac VisitorbookCache fixed. ba2479571 Migration stuff in progress... b3293f0cc PersistenceService/Context: stats handling improved. b5dc26e24 Migration stuff in progress...