public ICache BuildCache(string regionName, IDictionary<string, string> properties) {
if(regionName == null)
regionName = string.Empty;
ICache result;
if(_caches.TryGetValue(regionName, out result))
return result;
var props = properties ?? new Dictionary<string, string>(1);
if(IsDebugEnabled) {
var sb = new StringBuilder();
sb.AppendFormat("Build SharedCacheProvider with region:[{0}], properties:", regionName);
foreach(var pair in props)
sb.AppendFormat("name={0}&value={1};", pair.Key, pair.Value);
log.Debug(sb.ToString());
}
return new SharedCacheClient(regionName, props);
}