How do I get an object through cacheManager?

memesaregood3 days ago

Is it possible? I have a Position and, therefore, a deviceId through position.getDeviceId(). Can I acquire a Device object with an id somehow without using Storage?

Anton Tananaev3 days ago

If the device is online, then yes.

memesaregood3 days ago
cacheManager.getObject(Device.class, position.getDeviceId())

Am I in the right direction?

Anton Tananaev3 days ago

Yes.

memesaregood3 days ago

Thanks.