//唯一全局访问点 public static RedisConfigInfo GetRedisConfigInfo() { //双重锁定 if (uniqueInstance == null) { lock (locker) { if (uniqueInstance == null) { uniqueInstance = new RedisConfigInfo(); } } } return(uniqueInstance); }