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