recordSession static method
Record that the user started a session for this state today.
Implementation
static Future<void> recordSession(String stateId) async {
final key = 'last_$stateId';
final today = _todayKey();
_cache[key] = today;
final box = await _openBox();
await box.put(key, today);
}