| 1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SiteCore.Redis
- {
- public class duRedis
- {
- 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(10);
- }
- }
- }
- return _instance;
- }
- }
- }
- }
|