use of com.hazelcast.cache.impl.CacheRecordStore in project hazelcast by hazelcast.
the class CacheRecordStoreTestSupport method createCacheRecordStore.
protected ICacheRecordStore createCacheRecordStore(HazelcastInstance instance, String cacheName, int partitionId, InMemoryFormat inMemoryFormat) {
NodeEngine nodeEngine = getNodeEngineImpl(instance);
ICacheService cacheService = getCacheService(instance);
CacheConfig cacheConfig = createCacheConfig(cacheName, inMemoryFormat);
cacheService.putCacheConfigIfAbsent(cacheConfig);
return new CacheRecordStore(CACHE_NAME_PREFIX + cacheName, partitionId, nodeEngine, (AbstractCacheService) cacheService);
}
Aggregations