Skip to content

Commit

Permalink
AP-5015 added maxRetriesPerRequest to RedisConfig (#156)
Browse files Browse the repository at this point in the history
* AP-5015 added maxRetriesPerRequest to RedisConfig

* AP-5015 linting

* AP-5015 added more parameters to RedisConfig

* AP-5015 added comment about maxRetriesPerRequest value
  • Loading branch information
kjamrog authored Aug 30, 2024
1 parent 98909ad commit 5557183
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions src/config/configTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5557183

Please sign in to comment.