Skip to main content

Cristian Duarte – Blog

retrofit

Android, Retrofit2, OkHTTP3 and an easy cache implementation

July 6, 2016July 7, 2016 Cristian Leave a comment

In a recent development, a simple Android App which should get data from a REST API, one of the requirements was: Cache API requests for 1 hour. I chose retrofit as my REST Client, and I knew it provided cache mechanisms out of the box (by OkHTTP3). Following this useful tip, it looked like a long hanging fruit (having a […]

Read More

About

Cristian is a Systems Engineer, Software Developer, doer and thinker.

On the web:

– @Toptal

– @LinkedIn

– @stack overflow

– @GitHub

★ Engage with your Android App!

✉ Contact me

Recent Posts

  • How to share changes with patches and git-am across branches or pull requests
  • Android, Retrofit2, OkHTTP3 and an easy cache implementation
  • 4 ways the Android Platform changed that can teach us how to be better Engineers
  • Thinking dp as centimeters (or inches)
  • A Bugs Life I

Categories

  • A Bugs Life
  • Development

Archives

  • November 2018
  • July 2016
  • April 2016
  • March 2016
  • February 2016
  • November 2015
sparkling Theme by Colorlib Powered by WordPress