title: Cache object in Android?
body: <p>Im wondering whats the best way to cache objects in an Android application? I am working with a REST application and have written a notification class that fetches number of new messages, events, guestbookposts etc from our API in JSON-format.</p>
  
  <p>I use these numbers to display a badge on the icons so users can see if they have any new undread messages, events etc...</p>
  
  <p>I would however like to cache this object for about 5 minutes or so to save performance, but its not as easy as just to set an expire date on the sharedpreferences class...so how do i do it i ask you?</p>