bool expiredAt(DateTime now) => ttlMs != null && now.isAfter(createdAt.add(Duration(milliseconds: ttlMs!)));