Accessing cache in Connector class
I need to implement a "Connector" class that will talk with the ERP system. An API of this system require that for all threads you only once login into the system. This force me to remember if any connector has login and if so, to skip it (and uses data stored in some kind of cache). Is there any way of storing(retrieving) something in (from) cache from Connector code?
I will appreciate for any help (it would be super nice to have some code snippet).