public VelocityClient(string regionName, IDictionary<string, string> properties) { region = regionName.GetHashCode().ToString(); //because the region name length is limited var cacheCluster = new CacheFactory(); cache = cacheCluster.GetCache(CacheName); try { cache.CreateRegion(region, true); } catch (CacheException) {} }
public VelocityClient(string regionName, IDictionary <string, string> properties) { region = regionName.GetHashCode().ToString(); //because the region name length is limited var cacheCluster = new CacheFactory(); cache = cacheCluster.GetCache(CacheName); try { cache.CreateRegion(region, true); } catch (CacheException) {} }