refactor: improve code by creating a Cache class.
refactor: improve code by creating a Cache class.

fix: the All target was not correctly handled in the Sensors already written.

rouvoy/powerapi,Spirals-Team/powerapi,Spirals-Team/powerapi,rouvoy/powerapi