{"_id":"@chenjm/nestjs-redis","_rev":"4-cd0773287d40ac735b84b39bbbe730fb","name":"@chenjm/nestjs-redis","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@chenjm/nestjs-redis","version":"1.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"@chenjm/nestjs-redis@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-GbogKU0feL8BfM8XKSb+hkoBjBLd7D2X5g3pUOA10tRxqZWKtRWWkg+ZxYtM5t4e/n9IJM1LXOOFjRXSMq5QHg==","shasum":"13f1e77194308ac1411bd26c66684a458c8d36ef","tarball":"https://registry.npmjs.org/@chenjm/nestjs-redis/-/nestjs-redis-1.0.0.tgz","fileCount":1,"unpackedSize":216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1qL8CRA9TVsSAnZWagAAALkP/1s2aPKjdxnHuCnSbZcW\nPo3ina1BV8bth05uPgsPvZU23j+LNjVNerSZrMIAk+NWkSAwlEC1vpjjLgYA\nN0xcsPngQ1f6waib3OKzUSV+5GaCodqx3ro3bA6g3Pes23Uq+8U3CRn55fLz\nTQeb23Zbgy/Emf9uzQuKfb1Ncsn4Lw6yQLAGq3vvVoSSLT/i+0bzmUHRaorT\n+DHKqAty/Z7dE/OhNtU+Ur+mKm8N1HiG+dtgHtYDeI4vzZpkZCs1X0pvKbH8\nMJ40TGLSRNGIX/CZEobGAEQBkwAmMzcN6AUT6rRevd3RJe8QydrGczul0Wf/\nYpdt0TDKUJEom37wC67TSsMAbunZA5n9bYod/UtMx/kCJptd7OzIOVDXnVy6\nAsZU4PXx3yTWuloFhJ3YKl4oTVlb8X9LdHY2h/WvSzdnny9DaETEXbNW4Yx+\nTTvIZ0hINDWYwSLgixk6QGoHqmLgUDNRMDD2WF8YYVyu17KPA72kQVTngVop\n+/p1xs6n5NEI+CdfNZTyrom3/TB44i99ld0K+3wEPgvd7T0OyF20OjqMsNqf\nbGVMPWDsqM1A0vOg5YRVG+jPsA7MJdA8055CAd2DmWPO9QEiEZ64/rfZXJ+9\n2hOYvLU/mWYj+8+wHnh2HcZWtM+yCdRyKNjzBv9cBQpcCTaRWnlKMd/qCJwv\nNGWB\r\n=duG6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3cGOFlhcBMcsx5o7cNK+z6HmyhICe1VmHhXJPY4eQagIhANSaM2bPV1PESZYOuM3AIeTE3iILo6Qi6WSYy1Zd1mqV"}]},"_npmUser":{"name":"chenjm","email":"1837847333@qq.com"},"directories":{},"maintainers":[{"name":"chenjm","email":"1837847333@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-redis_1.0.0_1641456380192_0.8248850413053272"},"_hasShrinkwrap":false},"1.1.0":{"name":"@chenjm/nestjs-redis","version":"1.1.0","description":"Redis(ioredis) module for NestJS framework","author":{"name":"cnjm"},"main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","keywords":["redis","ioredis","sentinel","cluster","health","check","nestjs","nest","nodejs","node","typescript"],"scripts":{"prepare":"husky install","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","lint":"concurrently \"tsc -p tsconfig.json --noEmit\" \"eslint \"{lib,test}/**/*.ts\"\"","publish:next":"npm publish --tag next","publish:local":"npm publish --registry http://localhost:4873/","test":"jest","test:cov":"jest --coverage","test:e2e":"jest --config test/jest-e2e.json","test:clear":"jest --clearCache","make-badges":"istanbul-badges-readme --style=\"flat-square\"","madge":"madge --image docs/latest/dependency-graph.svg dist/index.js health/index.js"},"dependencies":{"@types/promise.allsettled":"1.0.3","promise.allsettled":"1.0.5","redis-errors":"1.2.0","tslib":"2.3.1"},"devDependencies":{"@commitlint/cli":"15.0.0","@commitlint/config-conventional":"15.0.0","@nestjs/common":"8.2.3","@nestjs/core":"8.2.3","@nestjs/platform-fastify":"8.2.3","@nestjs/terminus":"8.0.3","@nestjs/testing":"8.2.3","@types/ioredis":"4.28.2","@types/jest":"27.0.3","@types/node":"14.18.0","@types/redis-errors":"1.2.1","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","concurrently":"6.4.0","eslint":"7.32.0","eslint-config-prettier":"8.3.0","eslint-plugin-jest":"25.3.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-tsdoc":"0.2.14","fastify":"3.24.0","husky":"7.0.4","ioredis":"4.28.2","istanbul-badges-readme":"1.8.1","jest":"27.4.3","lint-staged":"12.1.2","prettier":"2.5.1","rimraf":"3.0.2","ts-jest":"27.1.1","tsc-alias":"1.4.2","typescript":"4.4.4"},"peerDependencies":{"@nestjs/common":"8.x || 7.x","@nestjs/core":"8.x || 7.x","@nestjs/terminus":"8.x || 7.x","ioredis":"4.x"},"peerDependenciesMeta":{"@nestjs/terminus":{"optional":true}},"engines":{"node":">= 10.13.0"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"lib","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node","verbose":true,"coveragePathIgnorePatterns":["/node_modules/","/interfaces/"],"moduleNameMapper":{"@/(.*)":["<rootDir>/$1"]},"coverageReporters":["json-summary"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"publishConfig":{"access":"public"},"homepage":"https://github.com/cnjm/nestjs-redis/blob/main/README.md","repository":{"type":"git","url":"git+https://github.com/cnjm/nestjs-redis.git"},"bugs":{"url":"https://github.com/cnjm/nestjs-redis/issues"},"gitHead":"4c4f88bd8d0e89d936b7332955e39434b39a06c5","_id":"@chenjm/nestjs-redis@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-cV6SZA/ZQq5sVrh2dLwqc0nW3oFCcKtXwtFtqU8Co3wQNetzEj1fgd7tV5O2M04WSPWjZMzkrhNmR2ous6E6mw==","shasum":"12263e291fb6ca1c294b3a60e8082c91df23a1aa","tarball":"https://registry.npmjs.org/@chenjm/nestjs-redis/-/nestjs-redis-1.1.0.tgz","fileCount":5,"unpackedSize":4818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1qNHCRA9TVsSAnZWagAAAGwQAJi1v0lT5DRAWuH8LZr5\ngg5rDtzjex4jU46cLKmZEqOwx99KySjc/cLVWfpS0t03ywjzRpC3/BqgnhV2\nNITAU7D+Hc1a2p5Y/DXUUScE2Tu9YDwliP+svnRkZb5O2ioo1zFke8+K3PJ2\nZt67Q6E64g5tNMJkmr8KZgAaoNDU+5LLDSLM9UkL/k1kfpP3OYkIDTWshDum\nepRQpx4efcUcu4nyqDPt3FsZJ8SGOwgfinV0/t1mJ41SzecEqJKJx/OP/DQm\nr212Hb4z4xZ+h51gJWD+jhYJQ/wReyw2jtrR2gP0MYLFEjWkoNDorPV0iV3o\njXO1eZsu1+lycVP1iEIrdCNLDe24EnjF1ZM57TkH3NSWvBcWQiDCijOhF8vp\ndaByS8oibFOAikB4bn1WPu/LnDxrflD7FL7RDtOmt/RnkdVtQKqZ6looi6Rj\nTP3+PcNkRsWZgRzi9WIMlAq4PcNUVdk+U7v0YAJFpMJCIp7NIhq6WSPYkpTt\nlbijHa/1QoU2bEhz4sOcYXAEw3jp+ImhISg4D3sjeKtKLfrJ0hLLKNNHeStD\nzCfLV47pfGOxZpR3qHADXgE7h/Jt6SxHXRgjCnTEqm03682Nr/KKvUj/Hll8\nXMXjyYimU6lufg8N61bm9zFsPkcfFSvMg2I3p7y7q/vELarkwJXJ+M5wbSVb\nN/yq\r\n=Tvmh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUCNYyqi9t+fehRbpqKhOom19ZBP4aycFr2cYCOE7r7AiAyLVacHIVsoPNR9KiFT+tmucMPORKjs5w/PrLQUvE3gA=="}]},"_npmUser":{"name":"chenjm","email":"1837847333@qq.com"},"directories":{},"maintainers":[{"name":"chenjm","email":"1837847333@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-redis_1.1.0_1641456455784_0.6996632867332142"},"_hasShrinkwrap":false},"1.1.1":{"name":"@chenjm/nestjs-redis","version":"1.1.1","description":"Redis(ioredis) module for NestJS framework","author":{"name":"cnjm"},"main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","keywords":["redis","ioredis","sentinel","cluster","health","check","nestjs","nest","nodejs","node","typescript"],"scripts":{"prepare":"husky install","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","lint":"concurrently \"tsc -p tsconfig.json --noEmit\" \"eslint \"{lib,test}/**/*.ts\"\"","publish:next":"npm publish --tag next","publish:local":"npm publish --registry http://localhost:4873/","test":"jest","test:cov":"jest --coverage","test:e2e":"jest --config test/jest-e2e.json","test:clear":"jest --clearCache","make-badges":"istanbul-badges-readme --style=\"flat-square\"","madge":"madge --image docs/latest/dependency-graph.svg dist/index.js health/index.js"},"dependencies":{"@types/promise.allsettled":"1.0.3","promise.allsettled":"1.0.5","redis-errors":"1.2.0","tslib":"2.3.1"},"devDependencies":{"@commitlint/cli":"15.0.0","@commitlint/config-conventional":"15.0.0","@nestjs/common":"8.2.3","@nestjs/core":"8.2.3","@nestjs/platform-fastify":"8.2.3","@nestjs/terminus":"8.0.3","@nestjs/testing":"8.2.3","@types/ioredis":"4.28.2","@types/jest":"27.0.3","@types/node":"14.18.0","@types/redis-errors":"1.2.1","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","concurrently":"6.4.0","eslint":"7.32.0","eslint-config-prettier":"8.3.0","eslint-plugin-jest":"25.3.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-tsdoc":"0.2.14","fastify":"3.24.0","husky":"7.0.4","ioredis":"4.28.2","istanbul-badges-readme":"1.8.1","jest":"27.4.3","lint-staged":"12.1.2","prettier":"2.5.1","rimraf":"3.0.2","ts-jest":"27.1.1","tsc-alias":"1.4.2","typescript":"4.4.4"},"peerDependencies":{"@nestjs/common":"8.x || 7.x","@nestjs/core":"8.x || 7.x","@nestjs/terminus":"8.x || 7.x","ioredis":"4.x"},"peerDependenciesMeta":{"@nestjs/terminus":{"optional":true}},"engines":{"node":">= 10.13.0"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"lib","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node","verbose":true,"coveragePathIgnorePatterns":["/node_modules/","/interfaces/"],"moduleNameMapper":{"@/(.*)":["<rootDir>/$1"]},"coverageReporters":["json-summary"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"publishConfig":{"access":"public"},"homepage":"https://github.com/cnjm/nestjs-redis/blob/main/README.md","repository":{"type":"git","url":"git+https://github.com/cnjm/nestjs-redis.git"},"bugs":{"url":"https://github.com/cnjm/nestjs-redis/issues"},"gitHead":"65711c2ac2b00d009647d896a17162753737f8c4","_id":"@chenjm/nestjs-redis@1.1.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-ALrs2LsvaaIScT3Q0HuQaW+u8+9hsRBkMds3XhlK7ne1rhXAvYbg5bbIxKB2aGTHW0iC3iz9vIDiiuNPkvyX8g==","shasum":"eecd959147b472b7deae63a401f83762635b8c08","tarball":"https://registry.npmjs.org/@chenjm/nestjs-redis/-/nestjs-redis-1.1.1.tgz","fileCount":67,"unpackedSize":55889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1qZ1CRA9TVsSAnZWagAAinEP/RVqyOJkqf7Eju9h7yaX\ns/Vk93RKhSpcNgWzpqkWcpaB+KxEU/rpcSZFOq7S3DzWOg5mNJJFa0H2TBZ1\nXfuoj412h+WFfrJieOeCxYYxri3SVODfuzWWEuZ6RJQIyCgEG//6B7E4Dz2m\n73kEiQmby+u3LtQc+r0EWDeO9ZvyoM+te/4GQJIaKiijrpquTpLAg96+B5z3\nS44eDqWJrmClMqvaTbT3jlhmKSZStp7RxbKAAqtyd/VhIzDfddKYoxv0F5u7\nFHJE6dT4xGAAzlkZDSf1GiF78LgD9FnHIXfKy22xaUL79sPN0u6AOZOfSqvt\nVlzAe3QIa5pKY1UltRwIhrXjcQ7bSoxoRoC66tZfy8UCCCBLpZ7Ib/XMC4lU\n+iSNTIwH+Dju+Wne9tjqvIWkh7l9pl9YHG2eb6IxtuWVsrWayG6ruTn2kRKB\nnGoFcVMjeyFqhdErJgpWAMxZoc2ul4VlCP28M/VV0AZtXxFcjggDeBJw2WnC\nsJWbFPAgkmAt7ZpS2HvHAmGaGzmhhz+2ZxDoxxr4KKIpg3uijLRQnAg12OMt\nPznXH6i3pCthwCNoA6CQIh9aEBftUjbK0HUMzyyYAgOs6c+oJhU5AaBQeEXo\nRZsljFWHOTZt5bE8xu60BZ8yDl/kwIvNu4ZsfgYVYrRxXad7B1Knuoxr7lZz\n2Iue\r\n=JLvJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFw8KXT50IWF9Oo2Bu1CfULUOoNApCKKKIBVvD+qleE5AiEA8KzXMbCZKRqTXQm3+KpBAEY9Gvahe2iGIWCAdzPVd5c="}]},"_npmUser":{"name":"chenjm","email":"1837847333@qq.com"},"directories":{},"maintainers":[{"name":"chenjm","email":"1837847333@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-redis_1.1.1_1641457269086_0.021970723245321233"},"_hasShrinkwrap":false},"1.1.2":{"name":"@chenjm/nestjs-redis","version":"1.1.2","description":"Redis(ioredis) module for NestJS framework","author":{"name":"cnjm"},"main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","keywords":["redis","ioredis","sentinel","cluster","health","check","nestjs","nest","nodejs","node","typescript"],"scripts":{"prepare":"husky install","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","lint":"concurrently \"tsc -p tsconfig.json --noEmit\" \"eslint \"{lib,test}/**/*.ts\"\"","publish:next":"npm publish --tag next","publish:local":"npm publish --registry http://localhost:4873/","test":"jest","test:cov":"jest --coverage","test:e2e":"jest --config test/jest-e2e.json","test:clear":"jest --clearCache","make-badges":"istanbul-badges-readme --style=\"flat-square\"","madge":"madge --image docs/latest/dependency-graph.svg dist/index.js health/index.js"},"dependencies":{"@types/promise.allsettled":"1.0.3","promise.allsettled":"1.0.5","redis-errors":"1.2.0","tslib":"2.3.1"},"devDependencies":{"@commitlint/cli":"15.0.0","@commitlint/config-conventional":"15.0.0","@nestjs/common":"8.2.3","@nestjs/core":"8.2.3","@nestjs/platform-fastify":"8.2.3","@nestjs/terminus":"8.0.3","@nestjs/testing":"8.2.3","@types/ioredis":"4.28.2","@types/jest":"27.0.3","@types/node":"14.18.0","@types/redis-errors":"1.2.1","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","concurrently":"6.4.0","eslint":"7.32.0","eslint-config-prettier":"8.3.0","eslint-plugin-jest":"25.3.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-tsdoc":"0.2.14","fastify":"3.24.0","husky":"7.0.4","ioredis":"4.28.2","istanbul-badges-readme":"1.8.1","jest":"27.4.3","lint-staged":"12.1.2","prettier":"2.5.1","rimraf":"3.0.2","ts-jest":"27.1.1","tsc-alias":"1.4.2","typescript":"4.4.4"},"peerDependencies":{"@nestjs/common":"8.x || 7.x","@nestjs/core":"8.x || 7.x","@nestjs/terminus":"8.x || 7.x","ioredis":"4.x"},"peerDependenciesMeta":{"@nestjs/terminus":{"optional":true}},"engines":{"node":">= 10.13.0"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"lib","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node","verbose":true,"coveragePathIgnorePatterns":["/node_modules/","/interfaces/"],"moduleNameMapper":{"@/(.*)":["<rootDir>/$1"]},"coverageReporters":["json-summary"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"publishConfig":{"access":"public"},"homepage":"https://github.com/cnjm/nestjs-redis/blob/main/README.md","repository":{"type":"git","url":"git+https://github.com/cnjm/nestjs-redis.git"},"bugs":{"url":"https://github.com/cnjm/nestjs-redis/issues"},"gitHead":"c646a76846a243fc751d418a6575dca05d245cad","_id":"@chenjm/nestjs-redis@1.1.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-O8mc9Ny8qD80Fl7hZpYiKOVueazIZ3YFqfcFGYZeo7Io/CZbOfRm34e0jDE2HCRpcoPtiwdj/t7vAhwoCacVYQ==","shasum":"e35a15a8b365fcf0406784a95795cc9ac892345a","tarball":"https://registry.npmjs.org/@chenjm/nestjs-redis/-/nestjs-redis-1.1.2.tgz","fileCount":67,"unpackedSize":58513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3SemCRA9TVsSAnZWagAAGgEP/iMHWxz1p1ggzTa+1coO\nvOGb/R4m6xEyl8/8pnMzeeSvFIkZntYoJN2hkUcg/zzWdCh6vx4/+BoKvXha\nQbniuRLbXtezCoYLY4zwEm4OO9g+IAj30uPAYpyfk1+TV17Q1UwGnNu5RhPK\nfOj5kWmeMquhr1qeWeTTvx4OWJN0br9rBV/r9wSMZf9fBIZhQUQE841NNCpJ\nEIBM12s1Frp9VrCqfs0VJztOd02TVAXH+8D6d3XFksHI1STRLWOusyfvDp+e\n74kY+3vJZMWgQTeeA/wEF6iFS7QpcosmImNn6GKjB69bcWhyRHbG1vsSULhW\nUWIHtK/27P9o7+dyaZgSpVSx3X5KFBrvJtgsDg5qvGMiB7rGmu5BrBnEHt8J\nHT1fTsRRIP5/iVkGYko+Alq+TXPG2EC/1bBbhY/d2Mozn3j/1LHwaIcpJGAP\nm0Lx9KtSxAToKpluo7Mzix9wG+A1qxwO3sDUmywGDrYxQ6QlENEVleMtN+9d\nWg6ER04WcwEJPx8yjCQnPnzaNaSiG5yjXWRrKKXhAfrIguAuiQCdCjh6ln80\ngpAhLbiogNL5F/iqrCkWoxj028jlWVO2xBexxuSud7zVbbe4prYB31P2yfdz\nocvog5NiKyTPJ7N4A6+YpLNdgkKV2KAZ5JFxtjmsZ843siOoS+8K0OQoGAnd\nxhCI\r\n=llWv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUTOIOlaUyGF6lfUI47ZGX5+w0nRQMv97PNuw6uQk/KwIgOx0Q2EzDPyTwSwCS99qhmDsow8cIIKLbir6dIRPxOGc="}]},"_npmUser":{"name":"chenjm","email":"1837847333@qq.com"},"directories":{},"maintainers":[{"name":"chenjm","email":"1837847333@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-redis_1.1.2_1641883558466_0.8784707892371983"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-06T08:06:20.137Z","1.0.0":"2022-01-06T08:06:20.330Z","modified":"2022-04-04T22:39:07.512Z","1.1.0":"2022-01-06T08:07:35.921Z","1.1.1":"2022-01-06T08:21:09.297Z","1.1.2":"2022-01-11T06:45:58.710Z"},"maintainers":[{"name":"chenjm","email":"1837847333@qq.com"}],"license":"MIT","readme":"# nestjs-redis 8 fix\r\n\r\n# Redis\r\n\r\n## Usage\r\n\r\n 在app模块下导入:\r\n\r\n```TypeScript\r\nimport {\r\n    RedisModule\r\n} from \"@chenjm/nestjs-redis\";\r\n\r\n@Module({\r\n    imports: [\r\n        RedisModule.forRoot({\r\n            closeClient: true,\r\n            readyLog: true,\r\n            config: {\r\n                namespace: 'default',\r\n                host: '127.0.0.1',\r\n                port: 6380,\r\n                password: 'redispassword'\r\n            }\r\n        })\r\n    ]\r\n})\r\nexport class AppModule {}\r\n```\r\n\r\n也可以配合 @nestjs/config 通过configService 提供配置\r\n\r\n```TypeScript\r\nimport { ConfigModule, ConfigService } from \"@nestjs/config\";\r\nimport { RedisModule } from \"@chenjm/nestjs-redis\";\r\n\r\n@Module({\r\n  imports: [\r\n    ConfigModule.forRoot({\r\n      isGlobal: true,\r\n      cache: true,\r\n      envFilePath: `${process.env.NODE_ENV}.env`,\r\n      load: [configuration],\r\n    }),\r\n    RedisModule.forRootAsync({\r\n      inject: [ConfigService],\r\n      useFactory: (configService: ConfigService) => {\r\n        return {\r\n          closeClient: true,\r\n          readyLog: true,\r\n          config: configService.get(\"redis\"),\r\n        };\r\n      },\r\n    }),\r\n  ],\r\n})\r\nexport class AppModule {}\r\n\r\n```\r\n\r\n提示：如果不为客户机设置名称空间，则其名称空间将设置为默认名称空间。请注意，您不应该有多个没有命名空间的客户端，或者具有相同的命名空间，否则它们将被覆盖。\r\n\r\n## 我们可以通过两种方式使用redis. 也可以封装下自己常用的方法\r\n\r\n decorator 中使用:\r\n\r\n```TypeScript\r\nimport { Injectable } from '@nestjs/common';\r\nimport { InjectRedis, DEFAULT_REDIS_NAMESPACE } from '@chenjm/nestjs-redis';\r\nimport { Redis } from 'ioredis';\r\n\r\n@Injectable()\r\nexport class AppService {\r\n    constructor(\r\n        @InjectRedis() private readonly redis: Redis\r\n        // or\r\n        // @InjectRedis(DEFAULT_REDIS_NAMESPACE) private readonly redis: Redis\r\n    ) {}\r\n\r\n    async ping(): Promise<string> {\r\n        return await this.redis.ping();\r\n    }\r\n}\r\n```\r\n\r\n service中使用:\r\n\r\n```TypeScript\r\nimport { Injectable } from '@nestjs/common';\r\nimport { RedisService, DEFAULT_REDIS_NAMESPACE } from '@chenjm/nestjs-redis';\r\nimport { Redis } from 'ioredis';\r\n\r\n@Injectable()\r\nexport class AppService {\r\n    private readonly redis: Redis;\r\n\r\n    constructor(private readonly redisService: RedisService) {\r\n        this.redis = this.redisService.getClient();\r\n        // or\r\n        // this.redis = this.redisService.getClient(DEFAULT_REDIS_NAMESPACE);\r\n    }\r\n\r\n    async ping(): Promise<string> {\r\n        return await this.redis.ping();\r\n    }\r\n}\r\n```\r\n","readmeFilename":"README.md","description":"Redis(ioredis) module for NestJS framework","homepage":"https://github.com/cnjm/nestjs-redis/blob/main/README.md","keywords":["redis","ioredis","sentinel","cluster","health","check","nestjs","nest","nodejs","node","typescript"],"repository":{"type":"git","url":"git+https://github.com/cnjm/nestjs-redis.git"},"author":{"name":"cnjm"},"bugs":{"url":"https://github.com/cnjm/nestjs-redis/issues"}}