CacheEntry constructor

CacheEntry({
  1. required Map<String, dynamic> data,
  2. required DateTime timestamp,
  3. Duration? ttl,
})

Creates a cache entry.

data is the cached GraphQL response data. timestamp is when this entry was created/updated. ttl is the optional time-to-live duration. If null, the entry never expires.

Implementation

CacheEntry({
  required this.data,
  required this.timestamp,
  this.ttl,
});