RedisOptions.js 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.DEFAULT_REDIS_OPTIONS = {
  4. // Connection
  5. port: 6379,
  6. host: "localhost",
  7. family: 4,
  8. connectTimeout: 10000,
  9. retryStrategy: function (times) {
  10. return Math.min(times * 50, 2000);
  11. },
  12. keepAlive: 0,
  13. noDelay: true,
  14. connectionName: null,
  15. // Sentinel
  16. sentinels: null,
  17. name: null,
  18. role: "master",
  19. sentinelRetryStrategy: function (times) {
  20. return Math.min(times * 10, 1000);
  21. },
  22. natMap: null,
  23. enableTLSForSentinelMode: false,
  24. updateSentinels: true,
  25. // Status
  26. password: null,
  27. db: 0,
  28. // Others
  29. dropBufferSupport: false,
  30. enableOfflineQueue: true,
  31. enableReadyCheck: true,
  32. autoResubscribe: true,
  33. autoResendUnfulfilledCommands: true,
  34. lazyConnect: false,
  35. keyPrefix: "",
  36. reconnectOnError: null,
  37. readOnly: false,
  38. stringNumbers: false,
  39. maxRetriesPerRequest: 20,
  40. maxLoadingRetryTime: 10000
  41. };