Use injection for the cache manager.