SearchCacheRepository constructor

SearchCacheRepository({
  1. required String boxName,
  2. Duration cacheDuration = const Duration(hours: 24),
  3. int maxEntries = 50,
  4. int maxSizeBytes = 5 * 1024 * 1024,
})

Creates a search cache repository.

Implementation

SearchCacheRepository({
  required this.boxName,
  this.cacheDuration = const Duration(hours: 24),
  this.maxEntries = 50,
  this.maxSizeBytes = 5 * 1024 * 1024, // 5MB
});