DEV Community

Cover image for Implement LRU Caching into your Repository | Androidbites
Chetan garg
Chetan garg

Posted on • Updated on • Originally published at chetangupta.net

Implement LRU Caching into your Repository | Androidbites

Hi Devs, Repository pattern is available in almost every codebase, people often design it pretty well but often miss out on the caching behavior from It and rely on retrofit caching or Live data for caching data or put on some hack in the android lifecycle to only get data once to save APIs calls.

follow up the following article and learn how to implement LRU cache in your repository in 5 easy steps.

Alt Text

👉 AndroidBites|cache-repository

Hope to see you on the other side...

Until next time. Happy Hacking! 👩‍💻

Stalk Me 👀 :
LinkedIn | Medium | Twitter | StackOverflow | CodeWars |WorkX |Github |Instagram |Youtube

Top comments (0)