| 12345678910111213141516171819202122232425262728 |
- 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;
- }
- }
- }
- }
|