refactor CacheMemoryManager and CacheMemoryManagerTest.
modify StorageManager for CacheMemoryManager.