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.
see you on the other side ๐
Happy Hacking!
Stalk Me ๐ :
LinkedIn |
Medium |
Twitter |
StackOverflow |
CodeWars |
WorkX |
Github |
Instagram |
Youtube