Answer the question
In order to leave comments, you need to log in
Are there libraries for object caching in android?
The task is that: There is an object, I receive it by long calculations. You need to cache it for 2-30 hours. I need a simple library to which I would give this object and the time of relevance. And when I request an object from the cache, it would give it to me (if it is still relevant), or null if not relevant.
I did not find this in the standard android API.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
developer.android.com/guide/topics/data/data-stora...
You can look at the date. In principle, you can use any cache implementation like ehcache, but since your application will not spin at runtime all the time, then data-storage is indispensable
Write your own wrapper that checks the creation/modification date
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question