public void Create(IIgnite ignite, string branchId) { var cacheId = IgniteExtensions.CreateCacheId(branchId, Id); var configuration = new CacheConfiguration(cacheId, new QueryEntity(KeyType, ValueType)) { DataRegionName = Region.Name, AtomicityMode = CacheAtomicityMode.TransactionalSnapshot, CacheMode = CacheMode.Replicated, EnableStatistics = true }; OnConfigure(configuration); var cache = OnCreate(ignite, configuration); }
public void Delete(IIgnite ignite, string branchId) { ignite.DestroyCache(IgniteExtensions.CreateCacheId(branchId, Id)); }
public bool Exists(IIgnite ignite, ICollection <string> cacheIds, string branchId) { return(cacheIds .Contains(IgniteExtensions.CreateCacheId(branchId, Id))); }