implement inhertingDependencies in Cache