expiredAt method

bool expiredAt(
  1. DateTime now
)

Implementation

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