This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a79ea92
commit df63f60
Showing
17 changed files
with
54 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import * as dotenv from "dotenv"; | ||
import * as Redis from "ioredis"; | ||
import * as dotenv from 'dotenv'; | ||
import Redis from 'ioredis'; | ||
|
||
dotenv.config(); | ||
|
||
const { REDIS_HOST, REDIS_PORT, REDIS_PASSWORD } = process.env; | ||
|
||
const redis = new Redis({ | ||
host: REDIS_HOST, | ||
port: parseInt(REDIS_PORT || "6379", 10), | ||
password: REDIS_PASSWORD, | ||
port: parseInt(REDIS_PORT || '6379', 10), | ||
password: REDIS_PASSWORD | ||
}); | ||
|
||
export default redis; | ||
export default redis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import * as dotenv from "dotenv"; | ||
import * as Redis from "ioredis"; | ||
import * as dotenv from 'dotenv'; | ||
import Redis from 'ioredis'; | ||
|
||
dotenv.config(); | ||
|
||
const { REDIS_HOST, REDIS_PORT, REDIS_PASSWORD } = process.env; | ||
|
||
const redis = new Redis({ | ||
host: REDIS_HOST, | ||
port: parseInt(REDIS_PORT || "6379", 10), | ||
password: REDIS_PASSWORD, | ||
port: parseInt(REDIS_PORT || '6379', 10), | ||
password: REDIS_PASSWORD | ||
}); | ||
|
||
export default redis; | ||
export default redis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3890,6 +3890,11 @@ | |
resolved "https://registry.npmjs.org/@interactjs/types/-/types-1.10.17.tgz" | ||
integrity sha512-X2JpoM7xUw0p9Me0tMaI0HNfcF/Hd07ZZlzpnpEMpGerUZOLoyeThrV9P+CrBHxZrluWJrigJbcdqXliFd0YMA== | ||
|
||
"@ioredis/commands@^1.1.1": | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/@ioredis/commands/-/commands-1.2.0.tgz#6d61b3097470af1fdbbe622795b8921d42018e11" | ||
integrity sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg== | ||
|
||
"@istanbuljs/load-nyc-config@^1.0.0", "@istanbuljs/load-nyc-config@^1.1.0": | ||
version "1.1.0" | ||
resolved "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz" | ||
|
@@ -5085,17 +5090,12 @@ | |
"@babel/types" "^7.3.0" | ||
|
||
"@types/babylon@^6.16.2": | ||
version "6.16.6" | ||
resolved "https://registry.npmjs.org/@types/babylon/-/babylon-6.16.6.tgz" | ||
integrity sha512-G4yqdVlhr6YhzLXFKy5F7HtRBU8Y23+iWy7UKthMq/OSQnL1hbsoeXESQ2LY8zEDlknipDG3nRGhUC9tkwvy/w== | ||
version "6.16.7" | ||
resolved "https://registry.yarnpkg.com/@types/babylon/-/babylon-6.16.7.tgz#76ea14f935dab440b0b6039a3ed5a2cbf2e850bf" | ||
integrity sha512-8wz9tFZVI35Bnyq5qFQ/+yAVLRuU5xglYKmWSKT2KC+QL3QtbTnBK4LbnATb2J762w/tA2A/3XSQ3WsPlu+3bA== | ||
dependencies: | ||
"@types/babel-types" "*" | ||
|
||
"@types/bluebird@*": | ||
version "3.5.36" | ||
resolved "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.36.tgz" | ||
integrity sha512-HBNx4lhkxN7bx6P0++W8E289foSu8kO8GCk2unhuVggO+cE7rh9DhZUyPhUxNRG9m+5B5BTKxZQ5ZP92x/mx9Q== | ||
|
||
"@types/body-parser@*", "@types/body-parser@^1.17.0": | ||
version "1.19.2" | ||
resolved "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz" | ||
|
@@ -5311,21 +5311,6 @@ | |
dependencies: | ||
"@types/node" "*" | ||
|
||
"@types/ioredis@^3.2.15": | ||
version "3.2.26" | ||
resolved "https://registry.npmjs.org/@types/ioredis/-/ioredis-3.2.26.tgz" | ||
integrity sha512-VfD0g1o+u7CpjaRPmTbVU0GMMEAjDX6/x2wCZXJv7ExqtawEzJ0KI7tcA82lbcuWNWbMjqmQsUcfQnEspCNp8A== | ||
dependencies: | ||
"@types/bluebird" "*" | ||
"@types/node" "*" | ||
|
||
"@types/ioredis@^4.28.5", "@types/ioredis@^4.28.7": | ||
version "4.28.8" | ||
resolved "https://registry.npmjs.org/@types/ioredis/-/ioredis-4.28.8.tgz" | ||
integrity sha512-mULOyO2smtvkE1zmzRRA4P0+1UjEqusi014kXOL1q3CY0RgqkR5/wKvv+vAJbPw2Q66wPyylKeevUy+m/FaRMg== | ||
dependencies: | ||
"@types/node" "*" | ||
|
||
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": | ||
version "2.0.1" | ||
resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz" | ||
|
@@ -10658,6 +10643,11 @@ denque@^2.0.1: | |
resolved "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz" | ||
integrity sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ== | ||
|
||
denque@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/denque/-/denque-2.1.0.tgz#e93e1a6569fb5e66f16a3c2a2964617d349d6ab1" | ||
integrity sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw== | ||
|
||
[email protected], depd@^2.0.0, depd@~2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" | ||
|
@@ -14620,7 +14610,7 @@ ioredis@^3.1.2: | |
redis-commands "^1.2.0" | ||
redis-parser "^2.4.0" | ||
|
||
ioredis@^4.17.3, ioredis@^4.27.8, ioredis@^4.28.2: | ||
ioredis@^4.17.3, ioredis@^4.27.8: | ||
version "4.28.5" | ||
resolved "https://registry.npmjs.org/ioredis/-/ioredis-4.28.5.tgz" | ||
integrity sha512-3GYo0GJtLqgNXj4YhrisLaNNvWSNwSS2wS4OELGfGxH8I69+XfNdnmV1AyN+ZqMh0i7eX+SWjrwFKDBDgfBC1A== | ||
|
@@ -14637,6 +14627,21 @@ ioredis@^4.17.3, ioredis@^4.27.8, ioredis@^4.28.2: | |
redis-parser "^3.0.0" | ||
standard-as-callback "^2.1.0" | ||
|
||
ioredis@^5.3.2: | ||
version "5.3.2" | ||
resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.3.2.tgz#9139f596f62fc9c72d873353ac5395bcf05709f7" | ||
integrity sha512-1DKMMzlIHM02eBBVOFQ1+AolGjs6+xEcM4PDL7NqOS6szq7H9jSaEkIUH6/a5Hl241LzW6JLSiAbNvTQjUupUA== | ||
dependencies: | ||
"@ioredis/commands" "^1.1.1" | ||
cluster-key-slot "^1.1.0" | ||
debug "^4.3.4" | ||
denque "^2.1.0" | ||
lodash.defaults "^4.2.0" | ||
lodash.isarguments "^3.1.0" | ||
redis-errors "^1.2.0" | ||
redis-parser "^3.0.0" | ||
standard-as-callback "^2.1.0" | ||
|
||
ip-regex@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz" | ||
|