using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ErpServer.Redis { public class erpRedis { private static RedisHelp _instance; private static readonly object dLocker = new object(); public static RedisHelp RedisHelper { get { if (_instance == null) { lock (dLocker) { if (_instance == null) { _instance = new RedisHelp(11); } } } return _instance; } } } }