erpRedis.cs 632 B

1234567891011121314151617181920212223242526
  1. namespace SiteCore.Redis
  2. {
  3. public class erpRedis
  4. {
  5. private static RedisHelp _instance;
  6. private static readonly object dLocker = new object();
  7. public static RedisHelp RedisHelper
  8. {
  9. get
  10. {
  11. if (_instance == null)
  12. {
  13. lock (dLocker)
  14. {
  15. if (_instance == null)
  16. {
  17. _instance = new RedisHelp(11);
  18. }
  19. }
  20. }
  21. return _instance;
  22. }
  23. }
  24. }
  25. }