hasura_cache_interceptor 1.0.0-dev.7 copy "hasura_cache_interceptor: ^1.0.0-dev.7" to clipboard
hasura_cache_interceptor: ^1.0.0-dev.7 copied to clipboard

Package to implements cache in Hasura package

Hasura Connect Cache Interceptor #

Official Implementations #

In Memory Cache (without persistence) #

pubspec.yaml

dependencies:
  hasura_connect: <last version>
  hasura_cache_interceptor: <last version>

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,
)
9
likes
110
points
101
downloads

Publisher

verified publisherflutterando.com.br

Weekly Downloads

Package to implements cache in Hasura package

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

hasura_connect, http, uuid

More

Packages that depend on hasura_cache_interceptor