{"_id":"@142vip/nest-redis","_rev":"6-db61c1bf0d2beb0f4228928d0712889c","name":"@142vip/nest-redis","dist-tags":{"latest":"0.0.1-alpha.5"},"versions":{"0.0.1-alpha.0":{"name":"@142vip/nest-redis","version":"0.0.1-alpha.0","keywords":["公众号搜：储凡"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/nest-redis@0.0.1-alpha.0","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"dist":{"shasum":"3d50f7f36e61ca4fc58ee6ff011a2d4880e85439","tarball":"https://registry.npmjs.org/@142vip/nest-redis/-/nest-redis-0.0.1-alpha.0.tgz","fileCount":13,"integrity":"sha512-ta/eTKMZPClD8RJBgTgbJ3+xJOKUHiit/HQcDB6i0Ge0u/IYmb+FNYKS4BQGVwLfbAwTCPNdxlu+Kvp3vXK9Pg==","signatures":[{"sig":"MEUCIFbolBkBu+2ln2KVyrqsr8WN5pZGJokkhkpPQAySePaVAiEAw6Cqrcyna7uFxZuKeyPezvrwPGP8i4qhW3KoIYUjX34=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2845},"_from":"file:142vip-nest-redis-0.0.1-alpha.0.tgz","types":"./index.d.ts","private":false,"scripts":{"build":"unbuild","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/private/var/folders/93/44x7xwkd2vz0pdy1z9s29m4r0000gn/T/1b8fa93fc754df05fd0d81d202842743/142vip-nest-redis-0.0.1-alpha.0.tgz","_integrity":"sha512-ta/eTKMZPClD8RJBgTgbJ3+xJOKUHiit/HQcDB6i0Ge0u/IYmb+FNYKS4BQGVwLfbAwTCPNdxlu+Kvp3vXK9Pg==","_npmVersion":"10.8.1","description":"公众号搜：储凡","directories":{},"_nodeVersion":"20.16.0","dependencies":{"dayjs":"^1.11.11"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/nest-redis_0.0.1-alpha.0_1722504195900_0.34689767571019603","host":"s3://npm-registry-packages"}},"0.0.1-alpha.1":{"name":"@142vip/nest-redis","version":"0.0.1-alpha.1","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/nest-redis","nest","redis"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/nest-redis@0.0.1-alpha.1","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/nest-redis/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"07248b89e3d819146ad08bfd6bef857b3a6b4e09","tarball":"https://registry.npmjs.org/@142vip/nest-redis/-/nest-redis-0.0.1-alpha.1.tgz","fileCount":8,"integrity":"sha512-Cimm20hg53Mmpwre853Qz8+37S/mSTkzN6Y1OxA61NDoczAq3+4i6b0RERBuVVkOW9YAOxSKUGqNFQr5eYZ7Gw==","signatures":[{"sig":"MEQCIBLPoj8EC1t/Zgyk/nPaee8N0PdxGpYDkPdOJbQb29zfAiBj6q+RDXXDqq0I9wVq7D/UcRZMCgIP2l8NKNOxML5GYA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2657},"main":"./dist/index.mjs","_from":"file:142vip-nest-redis-0.0.1-alpha.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"private":false,"scripts":{"build":"unbuild","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/6daeb31c2f6501f736d8f9dcabb782ad/142vip-nest-redis-0.0.1-alpha.1.tgz","_integrity":"sha512-Cimm20hg53Mmpwre853Qz8+37S/mSTkzN6Y1OxA61NDoczAq3+4i6b0RERBuVVkOW9YAOxSKUGqNFQr5eYZ7Gw==","repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/nest-redis"},"_npmVersion":"10.5.0","description":"Nest.js框架下，Redis使用最佳实践、封装","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"@142vip/utils":"0.0.1-alpha.14"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/nest-redis_0.0.1-alpha.1_1738829853014_0.5549401490128101","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.2":{"name":"@142vip/nest-redis","version":"0.0.1-alpha.2","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/nest-redis","nest","redis"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/nest-redis@0.0.1-alpha.2","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/nest-redis/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"6e3cf7646421a80ca12bb935350df92f318838e5","tarball":"https://registry.npmjs.org/@142vip/nest-redis/-/nest-redis-0.0.1-alpha.2.tgz","fileCount":13,"integrity":"sha512-hX8LIkjLNnwE6F8XHnWV30QoSy31cwz4Fm8osDWC1kM3oIel9LS/0NkD8bqSNVflpP8vzV1t/RrWf+i083rWaw==","signatures":[{"sig":"MEUCID5/r2lpNy+aABaSMvNgAWs6OSXGDa8dh2Z32foHB6YJAiEAq+iiFSUZpBlsVvPJDCYxTqf7MUY1I2pf16zrOh5W28A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13267},"main":"./dist/index.js","_from":"file:142vip-nest-redis-0.0.1-alpha.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"private":false,"scripts":{"test":"npx jest","build":"npx nest build","typecheck":"tsc --noEmit","test:coverage":"npx jest --coverage"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/e0167fdee538faa0a3c70928871d20b6/142vip-nest-redis-0.0.1-alpha.2.tgz","_integrity":"sha512-hX8LIkjLNnwE6F8XHnWV30QoSy31cwz4Fm8osDWC1kM3oIel9LS/0NkD8bqSNVflpP8vzV1t/RrWf+i083rWaw==","authorInfo":{"url":"https://github.com/142vip","name":"微信公众号：储凡","email":"fairy_vip@2925.com","homePage":"https://142vip.cn"},"repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/nest-redis"},"_npmVersion":"10.5.0","description":"Nest.js框架下Redis使用最佳实践","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"@142vip/redis":"0.0.1-alpha.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"@142vip/nest":"0.0.1-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/nest-redis_0.0.1-alpha.2_1762243400256_0.347138430140836","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.3":{"name":"@142vip/nest-redis","version":"0.0.1-alpha.3","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/nest-redis","nest","redis"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/nest-redis@0.0.1-alpha.3","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/nest-redis/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"185569f18de5df5686d2c1bd87a06ed7d1bc83bc","tarball":"https://registry.npmjs.org/@142vip/nest-redis/-/nest-redis-0.0.1-alpha.3.tgz","fileCount":15,"integrity":"sha512-6A/I/LbjAULDEUm4ym6y6wRcQy4VqB2fvH1XKRYvHO5FiIK6Glm23n8lQM3Ggx7WZZI/g6SqGEEzu5HdVMkuUw==","signatures":[{"sig":"MEYCIQCJ8zrggwYhoco5DkW41FM425riiVqL478iD7n42pcgFgIhAIdDjoo7vZE80LFwKTQIFnVc7sqvAOX85RumLlILRSCO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15472},"main":"./dist/index.js","_from":"file:142vip-nest-redis-0.0.1-alpha.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"private":false,"scripts":{"test":"npx jest","build":"npx nest build","typecheck":"tsc --noEmit","test:coverage":"npx jest --coverage"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/cbda9807f3ae62c6819e294331bcf413/142vip-nest-redis-0.0.1-alpha.3.tgz","_integrity":"sha512-6A/I/LbjAULDEUm4ym6y6wRcQy4VqB2fvH1XKRYvHO5FiIK6Glm23n8lQM3Ggx7WZZI/g6SqGEEzu5HdVMkuUw==","authorInfo":{"url":"https://github.com/142vip","name":"微信公众号：储凡","email":"fairy_vip@2925.com","homePage":"https://142vip.cn"},"repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/nest-redis"},"_npmVersion":"10.5.0","description":"Nest.js框架下Redis使用最佳实践","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"@142vip/nest":"0.0.1-alpha.3","@142vip/redis":"0.0.1-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/nest-redis_0.0.1-alpha.3_1764916905762_0.8331890880802675","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.4":{"name":"@142vip/nest-redis","version":"0.0.1-alpha.4","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/nest-redis","nest","redis"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/nest-redis@0.0.1-alpha.4","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/nest-redis/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"e4425109cfb97cba61317b77a017d0a612773463","tarball":"https://registry.npmjs.org/@142vip/nest-redis/-/nest-redis-0.0.1-alpha.4.tgz","fileCount":21,"integrity":"sha512-oaw089BFDzYOdMoAWGAevc9yss2Px8almHIlH1M9H3E1PA0/GbkiUgxfLYAilGYWGw4zgeGQ8yG5XG/rDP4CQQ==","signatures":[{"sig":"MEYCIQD4Lk1Bn6A5ijgrKA96y2CpvzzVkh+oLlLdRvsTqTK7+gIhANqU/ZxQL+gwnsmaTIc+Jk+rOI5Po00BgogYhC0mAmRZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13588},"main":"./dist/index.js","_from":"file:142vip-nest-redis-0.0.1-alpha.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./index.js"}},"private":false,"scripts":{"test":"npx jest","build":"rm -rf dist && tsc -p tsconfig.json","typecheck":"tsc --noEmit","test:coverage":"npx jest --coverage"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/dcf379341c8aba35b3a4573b45feb3ae/142vip-nest-redis-0.0.1-alpha.4.tgz","_integrity":"sha512-oaw089BFDzYOdMoAWGAevc9yss2Px8almHIlH1M9H3E1PA0/GbkiUgxfLYAilGYWGw4zgeGQ8yG5XG/rDP4CQQ==","authorInfo":{"url":"https://github.com/142vip","name":"微信公众号：储凡","email":"fairy_vip@2925.com","homePage":"https://142vip.cn"},"repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/nest-redis"},"_npmVersion":"10.5.0","description":"Nest.js框架下Redis使用最佳实践","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"@142vip/nest":"0.0.1-alpha.5","@142vip/redis":"0.0.1-alpha.5"},"_npmOperationalInternal":{"tmp":"tmp/nest-redis_0.0.1-alpha.4_1767605382721_0.3482910456368742","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.5":{"name":"@142vip/nest-redis","version":"0.0.1-alpha.5","private":false,"description":"Nest.js框架下Redis使用最佳实践","author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","homepage":"https://142vip.github.io/core-x/packages/nest-redis/","repository":{"type":"git","url":"git+https://github.com/142vip/core-x.git","directory":"packages/nest-redis"},"keywords":["公众号搜：储凡","142vip","@142vip","@142vip/nest-redis","nest","redis"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./index.js"}},"authorInfo":{"name":"微信公众号：储凡","email":"fairy_vip@2925.com","url":"https://github.com/142vip","homePage":"https://142vip.cn"},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","peerDependencies":{"@142vip/nest":"0.0.1-alpha.5","@142vip/redis":"0.0.1-alpha.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"scripts":{"build":"rm -rf dist && tsc -p tsconfig.json","typecheck":"tsc --noEmit","test":"npx jest","test:coverage":"npx jest --coverage"},"bugs":{"url":"https://github.com/142vip/core-x/issues"},"_id":"@142vip/nest-redis@0.0.1-alpha.5","_integrity":"sha512-bVjw3AoNzDzHvwPpR+Or7aRJloSlXHDBq5oyxL4wsRFAJhgYVu0MTQtPfGBO5YG8tK/OFH6ow2t218TDXsxWaA==","_resolved":"/tmp/fd97094e1f86eb7125cbfb1951e155c0/142vip-nest-redis-0.0.1-alpha.5.tgz","_from":"file:142vip-nest-redis-0.0.1-alpha.5.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-bVjw3AoNzDzHvwPpR+Or7aRJloSlXHDBq5oyxL4wsRFAJhgYVu0MTQtPfGBO5YG8tK/OFH6ow2t218TDXsxWaA==","shasum":"74a7c1fd6289e6788b02d2c32aad3995ce0e92dc","tarball":"https://registry.npmjs.org/@142vip/nest-redis/-/nest-redis-0.0.1-alpha.5.tgz","fileCount":22,"unpackedSize":13806,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCOaPncfFSScGBtibIUke31ExUkqP0RWeu2jRUMN0mZbwIhAIWpCQ5pR1XzWCsL3XUY+q8pNi1+xXseP9wuo0q8t8TF"}]},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"directories":{},"maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nest-redis_0.0.1-alpha.5_1767671769123_0.40707596504175103"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-01T09:23:15.808Z","modified":"2026-01-06T03:56:10.714Z","0.0.1-alpha.0":"2024-08-01T09:23:16.066Z","0.0.1-alpha.1":"2025-02-06T08:17:33.205Z","0.0.1-alpha.2":"2025-11-04T08:03:20.489Z","0.0.1-alpha.3":"2025-12-05T06:41:45.929Z","0.0.1-alpha.4":"2026-01-05T09:29:42.869Z","0.0.1-alpha.5":"2026-01-06T03:56:10.498Z"},"bugs":{"url":"https://github.com/142vip/core-x/issues"},"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","homepage":"https://142vip.github.io/core-x/packages/nest-redis/","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/nest-redis","nest","redis"],"repository":{"type":"git","url":"git+https://github.com/142vip/core-x.git","directory":"packages/nest-redis"},"description":"Nest.js框架下Redis使用最佳实践","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"readme":"# @142vip/nest-redis\n\n[![NPM version](https://img.shields.io/npm/v/@142vip/nest-redis?labelColor=0b3d52&color=1da469&label=version)](https://www.npmjs.com/package/@142vip/nest-redis)\n\n## 安装\n\n```shell\n# npm\nnpm install @142vip/nest-redis\n# pnpm\npnpm i @142vip/nest-redis\n```\n\n## 配置\n\n```typescript\nimport { RedisConfig } from '@142vip/redis'\n\n// 简单配置\nconst config: RedisConfig = {\n  url: 'redis://localhost:6379',\n}\n\n// 集群配置\nconst clusterConfig: RedisConfig = {\n  clusterNodes: [\n    {\n      url: 'redis://localhost:6379',\n    },\n    {\n      url: 'redis://localhost:6380',\n    },\n  ],\n}\n// ...\n```\n\n## 使用\n\n### 模块注入\n```typescript\nimport { RedisModule } from '@142vip/nest-redis'\n\n@Module({\n  imports: [RedisModule.register({\n    url: 'redis://localhost:6379',\n  })],\n})\nexport class AppModule {}\n```\n\n### 使用服务\n```typescript\nimport { RedisService } from '@142vip/nest-redis'\n\n@Injectable()\nexport class AppService {\n  constructor(\n    private readonly redisService: RedisService\n  ) {}\n}\n```\n\n`RedisService`类实例化后，可以直接使用类对应的方法，代码的最佳实践，可以参考模块：[redis-example](https://github.com/142vip/core-x/apps/nest-demo/src/core/redis-example)\n\n## 参考\n\n- [NPM @142vip/redis](https://www.npmjs.com/package/@142vip/redis)\n- [Redis 官网](https://redis.io/)\n\n## 证书\n\n[MIT](https://opensource.org/license/MIT)\n\nCopyright (c) 2019-present, @142vip 储凡\n\n**仅供学习参考，商业使用请保留作者版权信息，作者不保证也不承担任何软件的使用风险。**\n","readmeFilename":"README.md"}