this.partitionId = partitionId;
this.nodeEngine = nodeEngine;
this.cacheService = cacheService;
this.cacheConfig = cacheService.getCacheConfig(name);
if (cacheConfig == null) {
throw new CacheNotExistsException("Cache already destroyed, node " + nodeEngine.getLocalMember());
}
if (cacheConfig.getCacheLoaderFactory() != null) {
final Factory<CacheLoader> cacheLoaderFactory = cacheConfig.getCacheLoaderFactory();
cacheLoader = cacheLoaderFactory.create();
}