implement cache in Android alongside enabling persistense true
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.