hasura_cache_interceptor

Last updated:

0 purchases

hasura_cache_interceptor Image
hasura_cache_interceptor Images
Add to Cart

Description:

hasura cache interceptor

Hasura Connect Cache Interceptor #
Official Implementations #

Using Shared Preferences [shared_preferences_cache_interceptor]
Using Hive [hasura_hive_cache_interceptor]
[others]

In Memory Cache (without persistence) #
pubspec.yaml
dependencies:
hasura_connect: <last version>
hasura_cache_interceptor: <last version>
copied to clipboard
you_file.dart
import 'package:hasura_cache_interceptor/hasura_hive_cache_interceptor.dart';

final storage = MemoryStorageService();
final cacheInterceptor = CacheInterceptor(storage);
final hasura = HasuraConnect(
"<your hasura url>",
interceptors: [cacheInterceptor],
httpClient: httpClient,
)
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.