StreamRepository<K, V>.local constructor

StreamRepository<K, V>.local({
  1. required CacheStorage<K, V> storage,
})

Creates repository for use as local data storage. Caches data in the passed CacheStorage.

Implementation

StreamRepository.local({required CacheStorage<K, V> storage})
    : this._(
        storage: storage,
        cacheDuration: Duration.zero,
      );