I have a list of records fetched from database. This list is fairly constant and does not change for a long time. I want to avoid the query each time the data is accessed in the app.
I don't know how to store the list and how to retrieve the individual items from the list.
My data is as follow
Tithi Date riseTime setTime
Karthik 11/22/2024 6:00 7:30
Poonam 01/01/2024 9:00 5:01
Ekam 10/01/2024 12:00 6:45
I want to read this data once from database and cache it. Now for each date change I want to read this record from above list of records for a given date.
Any ideas or help please.