M
M
mitaichik2015-03-31 20:29:29
Android
mitaichik, 2015-03-31 20:29:29

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

2 answer(s)
Y
Yaroslav Astafiev, 2015-03-31
@kentilini

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

V
Vladimir Abramov, 2015-03-31
@kivsiak

And he is not. see guava

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question