Table of Contents
Implements in memory cache interceptors for Hasura_Connect and provides interfaces to create you own implementation.
To install Hasura Connect and Hasura Cache Interceptor in your project you can follow the instructions below:
- In Memory Cache (without persistence)
a) Add in your pubspec.yaml:
dependencies:
hasura_connect: <last version>
hasura_cache_interceptor: <last version>b) or use slidy:
slidy install hasura_connect, hasura_cache_interceptorA simple usage example:
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,
)- Using Shared Preferences [shared_preferences_cache_interceptor]
- Using Hive [hasura_hive_cache_interceptor]
- [others]
_For more examples, please refer to the 🚧 Documentation - Currently being updated 🚧 .
- ✅ Memory cache interceptors.
- ✅ Custom interface.
Right now this package has concluded all his intended features. If you have any suggestions or find something to report, see below how to contribute to it.
🚧 Contributing Guidelines - Currently being updated 🚧
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the appropriate tag. Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Remember to include a tag, and to follow Conventional Commits and Semantic Versioning when uploading your commit and/or creating the issue.
Distributed under the MIT License. See LICENSE.txt for more information.
Flutterando Community
Built and maintained by Flutterando.