dio_cache_interceptor_objectbox_store 1.0.0 dio_cache_interceptor_objectbox_store: ^1.0.0 copied to clipboard
A DB cache store implementation with ObjectBox for dio_cache_interceptor package.
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 = ObjectBoxCacheStore(dir.path);
// cacheOptions = CacheOptions(
// store: cacheStore,
// hitCacheOnErrorExcept: [], // for offline behaviour
// );
// dio = Dio()
// ..interceptors.add(
// DioCacheInterceptor(options: cacheOptions),
// );
// });
}