aaRedis.cs 749 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SiteCore.Redis
  7. {
  8. public class aaRedis
  9. {
  10. private static RedisHelp _instance;
  11. private static readonly object dLocker6 = new object();
  12. public static RedisHelp RedisHelper
  13. {
  14. get
  15. {
  16. if (_instance == null)
  17. {
  18. lock (dLocker6)
  19. {
  20. if (_instance == null)
  21. {
  22. _instance = new RedisHelp(6);
  23. }
  24. }
  25. }
  26. return _instance;
  27. }
  28. }
  29. }
  30. }