Cached objects' life?

How long are the objects in cache?
I need them to be 24h and then I reset the value but they are been removed I think within an hour or so …
Edit: I just found that the int timeToLive parameter cannot be greater than 7200 secs. Is there any workaround to keep it 24h?

Backendless.Cache.put(“todayInfo”, afterSaveT, 24 * 60 * 60);

Thank you

Hi Alfredo,

You cannot set it to be greater than 7200 seconds, however, you can extend life of an object in cache using an API call. On way to do this is to create a timer which would have the knowledge of which objects should stay in cache and extend their life accordingly.


A timer right … after all I did to avoid them

Thanks for your response!