2017-07-12 71 views
0

在樞紐Native Client的我設置的方法來讀取和如下寫的Geode緩存區域:阿帕奇的Geode RegionExistsException

public void GeodePut(string region, string key, string value) 
{ 
    CacheFactory cF = CacheFactory.CreateCacheFactory(); 
    Cache c cF.Create(); 

    RegionFactory rF = c.CreateRegionFactory(RegionShortcut.CACHING_PROXY); 
    IRegion<string, string> r = rF.Create<string, string>(region); 

    r[key] = value; 

    cache.Close(); 
} 

當我把這種多次我得到RegionExistsException我怎麼周圍的獲得?謝謝

回答

0

這是關於cache.Close()命令。我不再使用cache.Close()