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) {}
 }
Beispiel #2
0
        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) {}
        }