diff --git a/package.json b/package.json index 51459d6..04c1ab8 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,7 @@ "url": "git://github.com/lokalise/node-core.git" }, "license": "Apache-2.0", - "files": [ - "dist/**", - "LICENSE", - "README.md" - ], + "files": ["dist/**", "LICENSE", "README.md"], "main": "dist/index.js", "types": "dist/index.d.ts", "type": "commonjs", diff --git a/src/config/configTypes.ts b/src/config/configTypes.ts index 1c26166..2da0e9e 100644 --- a/src/config/configTypes.ts +++ b/src/config/configTypes.ts @@ -13,6 +13,13 @@ export type RedisConfig = { password?: string commandTimeout?: number connectTimeout?: number + /** + * Set this option explicitly to null for infinite retries + * By default (for undefined) there are 20 retries, see: https://redis.github.io/ioredis/interfaces/CommonRedisOptions.html#maxRetriesPerRequest + */ + maxRetriesPerRequest?: number | null + enableReadyCheck?: boolean + lazyConnect?: boolean useTls: boolean }