implement cache in Android alongside enabling persistense true

  Kiến thức lập trình

Since frequent querying of real-time database data is expensive, I implemented the real-time automatic cache strategy. (Database.database().isPersistenceEnabled = true) , but I’m wondering if I should add another mechanism as I could check the local cached data before querying the remote one, in an effort to minimize the costs.

I implemented the real-time automatic cache strategy.

Database.database().isPersistenceEnabled = true

I hope to have an answer that suits me especially from Mr @Frank van Puffelen

LEAVE A COMMENT