namespace SiteCore.Redis { public class redis { 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(1); } } } return _instance; } } } }