Exemple #1
0
        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);
        }
Exemple #2
0
 public void Delete(IIgnite ignite, string branchId)
 {
     ignite.DestroyCache(IgniteExtensions.CreateCacheId(branchId, Id));
 }
Exemple #3
0
 public bool Exists(IIgnite ignite, ICollection <string> cacheIds, string branchId)
 {
     return(cacheIds
            .Contains(IgniteExtensions.CreateCacheId(branchId, Id)));
 }