config.default.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. 'use strict';
  2. exports.redis = {
  3. default: {
  4. },
  5. app: true,
  6. agent: false,
  7. // redis client will try to use TIME command to detect client is ready or not
  8. // if your redis server not support TIME command, please set this config to false
  9. // see https://redis.io/commands/time
  10. supportTimeCommand: true,
  11. // Redis: require('ioredis'), // customize ioredis version, only set when you needed
  12. // Single Redis
  13. // client: {
  14. // host: 'host',
  15. // port: 'port',
  16. // family: 'user',
  17. // password: 'password',
  18. // db: 'db',
  19. // },
  20. // Cluster Redis
  21. // client: {
  22. // cluster: true,
  23. // nodes: [{
  24. // host: 'host',
  25. // port: 'port',
  26. // family: 'user',
  27. // password: 'password',
  28. // db: 'db',
  29. // },{
  30. // host: 'host',
  31. // port: 'port',
  32. // family: 'user',
  33. // password: 'password',
  34. // db: 'db',
  35. // },
  36. // ]},
  37. // Multi Redis
  38. // clients: {
  39. // instance1: {
  40. // host: 'host',
  41. // port: 'port',
  42. // family: 'user',
  43. // password: 'password',
  44. // db: 'db',
  45. // },
  46. // instance2: {
  47. // host: 'host',
  48. // port: 'port',
  49. // family: 'user',
  50. // password: 'password',
  51. // db: 'db',
  52. // },
  53. // },
  54. };