So points 1 and 2 are the essence of the question.
So I guess, what I am asking is how are the objects fetched once the server starts?
If we get this code as example:
for (Maintenance maintenance : cacheManager.getDeviceObjects(position.getDeviceId(), Maintenance.class))
When and how are the maintenances fetched so that they are available here?
what I am asking is how are the objects fetched once the server starts?
Cache is not populated on the server start. Cache is only populated when a device connects to the server.
That's a better approach.
So the device connects and we get the objects connected to this device like maintenances or notifications based on what's available in the tc_device_maintenance
or tc_device_notifications
tables?
If so, how do you get the maintenance objects from storage?
Hi,
I have been checking the code but I am not entirely sure I understand how the cache currently works. Can you confirm on the below please?
May I ask for a favor, can you point out to the file/code used to store the objects in the cache after restart?
Thank you!