PersistentCache<V> constructor

PersistentCache<V>({
  1. required String cacheKey,
  2. required int maxSize,
  3. required V fromJson(
    1. Map<String, dynamic> json
    ),
  4. required Map<String, dynamic> toJson(
    1. V value
    ),
  5. Duration? expiration,
})

Implementation

PersistentCache({
  required this.cacheKey,
  required this.maxSize,
  required this.fromJson,
  required this.toJson,
  this.expiration,
});