@sebspark/promise-cache 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -110,11 +110,11 @@ var Persistor = class {
110
110
  ...this.redis,
111
111
  socket: {
112
112
  reconnectStrategy: (retries, cause) => {
113
- if (retries === 3) {
113
+ if (retries === 5) {
114
114
  console.error("Error reconnecting... ", cause);
115
115
  return false;
116
116
  }
117
- return Math.min(retries * 50, 1e3);
117
+ return retries * 1e3;
118
118
  }
119
119
  }
120
120
  }).on("error", (err) => {
package/dist/index.mjs CHANGED
@@ -81,11 +81,11 @@ var Persistor = class {
81
81
  ...this.redis,
82
82
  socket: {
83
83
  reconnectStrategy: (retries, cause) => {
84
- if (retries === 3) {
84
+ if (retries === 5) {
85
85
  console.error("Error reconnecting... ", cause);
86
86
  return false;
87
87
  }
88
- return Math.min(retries * 50, 1e3);
88
+ return retries * 1e3;
89
89
  }
90
90
  }
91
91
  }).on("error", (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/promise-cache",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",