百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

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

> 数据库
开源

使用 Retrofit 与 REST API 进行交互的应用程序。其中包含本地数据库缓存,架构为 MVVM。

188 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

使用 Retrofit 与 REST API 进行交互的应用程序。其中包含本地数据库缓存,架构为 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaandroid-cachingandroid-jetpackandroid-jetpack-componentsarchitecture

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

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