dio_cache_interceptor_hive_store 3.1.0 copy "dio_cache_interceptor_hive_store: ^3.1.0" to clipboard
dio_cache_interceptor_hive_store: ^3.1.0 copied to clipboard

outdated

A DB cache store implementation with Hive for dio_cache_interceptor package.

example/lib/main.dart

void main(List<String> arguments) {
  // Full example is available at
  // https://github.com/llfbandit/dio_cache_interceptor/blob/master/dio_cache_interceptor/example/lib/main.dart

  // late CacheStore cacheStore;

  // pp.getTemporaryDirectory().then((dir) {
  //   cacheStore = HiveCacheStore(dir.path);

  //   cacheOptions = CacheOptions(
  //     store: cacheStore,
  //     hitCacheOnErrorExcept: [], // for offline behaviour
  //   );

  //   dio = Dio()
  //     ..interceptors.add(
  //       DioCacheInterceptor(options: cacheOptions),
  //     );
  // });
}
41
likes
0
pub points
97%
popularity

Publisher

verified publisheropenapi4j.org

A DB cache store implementation with Hive for dio_cache_interceptor package.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dio_cache_interceptor, hive

More

Packages that depend on dio_cache_interceptor_hive_store