llfbandit / dio_cache_interceptor

Dio HTTP cache interceptor with multiple stores respecting HTTP directives (ETag, Last-Modified, Cache-Control) with options.
https://pub.dev/packages/dio_cache_interceptor
120 stars 70 forks source link

Add support for Realm database #159

Open VinhNgT opened 4 months ago

VinhNgT commented 4 months ago

Add a CacheStore implementation with Realm database

llfbandit commented 2 months ago

Thanks for your contribution! And... Sorry for the response time. While everything looks really good so far, I won't merge this asap. I'm thinking about a massive rework of the interceptor to handle both dio and http. This shouldn't affect you internally but it will with dependencies and package naming for example.

Just need a bit of time. I will let you now.

VinhNgT commented 2 weeks ago

Leaving here as a note to people who are planning to use this pull request in their own code.

Realm Flutter SDK has been deprecated in September 2024. Because of this, the future of Realm database is very uncertain, I therefore would advise you to use other alternatives instead, ObjectBox is a great option and is a much better fit for Flutter in my opinion.