Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

Local-db-Cache-Retrofit-REST-API-MVVM

> 数据库
Open source

App that interacts with a REST API using Retrofit. There is a local db cache and architecture is MVVM

188 stars0 likes3 views
WebsiteGitHub

About

App that interacts with a REST API using Retrofit. There is a local db cache and architecture is MVVM

Local Database Cache with REST API, Retrofit2, MVVM Architecture

Watch the app demo.

In this course you'll learn how to build a local database cache with SQLite and Room. The cache retrieves data from a REST API using Retrofit2. Architecture is MVVM.

Here's the specifics of what you will see in the course:

Caching data for when the network goes offline

Reading cached data when the network is down

Custom SQLite queries using Room

Customizing the cache (how long data will live in the cache)

How Retrofit caching works

Why SQLite and Room is better for caching than Retrofit

How to design a database cache

There is no "one size fits all"

Retrofit is better for some things but room is better for others

How Glide caching works

Glide RecyclerView Preloader (Customizing how many list items get cached)

Dealing with Network Errors and slow network speeds

OkHttp Network Timeouts

Converting Retrofit Calls to LiveData (Call Adapters)

And much more...

Architecture Diagram

Contributors

gmiklay

Converted to AndroidX: branch: pr/1

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroid-cachingandroid-jetpackandroid-jetpack-componentsarchitecture

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库