Skip to content

Package to implements cache using shared preferences to hasura_connect package

License

Notifications You must be signed in to change notification settings

revulcan/shared_preferences_cache_interceptor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared Preferences Cache Interceptor

Hasura Connect Cache Interceptor using shared_preferences package

How to use

pubspec.yaml

dependencies:
  hasura_connect: <last version>
  shared_preferences_cache_interceptor: <last version>

yourfile.dart

import 'package:hasura_connect/hasura_connect.dart';
import 'package:shared_preferences_cache_interceptor/shared_preferences_cache_interceptor.dart';

final cacheInterceptor = SharedPreferencesCacheInterceptor();
final hasura = HasuraConnect(
  "<your hasura url>",
  interceptors: [cacheInterceptor],
  httpClient: httpClient,
)

About

Package to implements cache using shared preferences to hasura_connect package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%