Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Latest commit

 

History

History

README.md

Hasura Connect Cache Interceptor.


Logo

Implements in memory cache interceptors for Hasura_Connect.


Report Bug · Request Feature


License Pub Points Contributors Forks

Pub Publisher Flutterando Youtube


Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

About The Project



Implements in memory cache interceptors for Hasura_Connect and provides interfaces to create you own implementation.

(back to top)

Sponsors

Logo

(back to top)


Getting Started

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_interceptor

(back to top)

How To Use

A 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,
)

Official Implementations

_For more examples, please refer to the 🚧 Documentation - Currently being updated 🚧 .

(back to top)

Features

  • ✅ 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.

(back to top)

Contributing

🚧 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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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.

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Flutterando Community

(back to top)

Contributors

(back to top)

Maintaned by



Built and maintained by Flutterando.