Cacheing API Results using Flutter an Hive

Viewed 1666

What is the proper way to cache API results using Hive?

The current way I plan to implement it is using the request URL as the key and the returned data as the body.

Is there a proper way to do this more production friendly? I can't find a tutorial as most tutorials are abstracted by using another package that takes care of this for them or a tutorial uses a different package.

1 Answers
Related