refactoring in cachemanagers