Cache constructor

Cache({
  1. required String render,
  2. required ContentType? contentType,
  3. DateTime? createdAt,
})

Creates a Cache instance.

If createdAt is not provided, it defaults to the current time.

Implementation

Cache({
  required this.render,
  required this.contentType,
  DateTime? createdAt,
}) : createdAt = createdAt ?? DateTime.now();