made aggregate cache have repositories injected through IoC