Checks if this cached entry has exceeded the allowed ttl.
ttl
bool isExpired(Duration ttl) => DateTime.now().difference(createdAt) > ttl;