{"versions":{"1.0.0":{"name":"@nest-lab/throttler-storage-redis","description":"Redis storage provider for the @nestjs/throttler package","version":"1.0.0","keywords":["nestjs","rate-limit","throttle","express","fastify","redis"],"repository":{"type":"github","url":"git+https://github.com/jmcdo29/nest-lab.git","directory":"packages/throttler-storage-redis"},"private":false,"license":"MIT","dependencies":{"tslib":"^2.3.0"},"devDependencies":{"@nestjs/platform-express":"10.4.1","@nestjs/platform-fastify":"10.4.1","@nestjs/testing":"10.4.1","ioredis":"5.4.1"},"peerDependencies":{"@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0","@nestjs/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0","@nestjs/throttler":">=6.0.0","ioredis":">=5.0.0","reflect-metadata":"^0.2.1"},"peerDependenciesMeta":{"@nestjs/common":{"optional":false},"@nestjs/core":{"optional":false},"@nestjs/throttler":{"optional":false},"ioredis":{"optional":false},"reflect-metadata":{"optional":false}},"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","types":"./src/index.d.ts","_id":"@nest-lab/throttler-storage-redis@1.0.0","bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"homepage":"https://github.com/jmcdo29/nest-lab#readme","_integrity":"sha512-k0eVe1yzTF8kgi5xQ+httwVBsNGDcq2liBLYK++ROpqiHUb7QxXet3JgERTQ4PWusyacPKz5DCtw9ijmGBx5YQ==","_resolved":"/tmp/90bfa002e7aa87389c6e4d5044ab5ed7/nest-lab-throttler-storage-redis-1.0.0.tgz","_from":"file:nest-lab-throttler-storage-redis-1.0.0.tgz","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-k0eVe1yzTF8kgi5xQ+httwVBsNGDcq2liBLYK++ROpqiHUb7QxXet3JgERTQ4PWusyacPKz5DCtw9ijmGBx5YQ==","shasum":"f1d8edaec6057c25b4d4d0241d85670f1f32abf9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nest-lab/throttler-storage-redis/-/throttler-storage-redis-1.0.0.tgz","fileCount":15,"unpackedSize":12710,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcCaMvAtqj0O/HV3fb0deMS6GAugDqwDwkhyOE3xUVDAiEAhf6R6+L30QlAvL3vtF2dLNrJSzX1auk8xInNsAg+FFs="}],"size":4126},"_npmUser":{"name":"anonymous","email":"jmcdo29@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jmcdo29@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/throttler-storage-redis_1.0.0_1724679659693_0.9415878812904104"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-26T13:40:59.838Z","publish_time":1724679659838,"_source_registry_name":"default","contributors":[]},"1.1.0":{"name":"@nest-lab/throttler-storage-redis","description":"Redis storage provider for the @nestjs/throttler package","version":"1.1.0","keywords":["nestjs","rate-limit","throttle","express","fastify","redis"],"repository":{"type":"github","url":"git+https://github.com/jmcdo29/nest-lab.git","directory":"packages/throttler-storage-redis"},"private":false,"license":"MIT","dependencies":{"tslib":"^2.3.0"},"devDependencies":{"ioredis":"5.4.1"},"peerDependencies":{"@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/throttler":">=6.0.0","ioredis":">=5.0.0","reflect-metadata":"^0.2.1"},"peerDependenciesMeta":{"@nestjs/common":{"optional":false},"@nestjs/core":{"optional":false},"@nestjs/throttler":{"optional":false},"ioredis":{"optional":false},"reflect-metadata":{"optional":false}},"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","types":"./src/index.d.ts","_id":"@nest-lab/throttler-storage-redis@1.1.0","bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"homepage":"https://github.com/jmcdo29/nest-lab#readme","_integrity":"sha512-7DW8MuqoB+ubu8cWby9Vw56eAFqsHFfowEflHbmmAF2sNByRdzcR4ddcyoYLwL3zG53nLmvzUa4EXoHKB4RoaQ==","_resolved":"/tmp/739939998884298d16bb0cd662569a83/nest-lab-throttler-storage-redis-1.1.0.tgz","_from":"file:nest-lab-throttler-storage-redis-1.1.0.tgz","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-7DW8MuqoB+ubu8cWby9Vw56eAFqsHFfowEflHbmmAF2sNByRdzcR4ddcyoYLwL3zG53nLmvzUa4EXoHKB4RoaQ==","shasum":"78f3dad83dbf6f890f27ce3f323b4a1e5f33e227","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nest-lab/throttler-storage-redis/-/throttler-storage-redis-1.1.0.tgz","fileCount":15,"unpackedSize":12682,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAru0IeNenLgwbj9etf2jVcgs0ThchG0OJGaI0WX73VsAiBiwDcbbKzMHsNV0FN8zVjCuPL5/pg6lnOgP8AyFNre4A=="}],"size":4130},"_npmUser":{"name":"anonymous","email":"jmcdo29@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"jmcdo29@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/throttler-storage-redis_1.1.0_1737654971360_0.7681962143205292"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-23T17:56:11.535Z","publish_time":1737654971535,"_source_registry_name":"default","contributors":[]},"1.1.1":{"name":"@nest-lab/throttler-storage-redis","description":"Redis storage provider for the @nestjs/throttler package","version":"1.1.1","keywords":["nestjs","rate-limit","throttle","express","fastify","redis"],"repository":{"type":"github","url":"git+https://github.com/jmcdo29/nest-lab.git","directory":"packages/throttler-storage-redis"},"private":false,"license":"MIT","dependencies":{"tslib":"^2.3.0"},"devDependencies":{"ioredis":"5.4.1"},"peerDependencies":{"@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/throttler":">=6.0.0","ioredis":">=5.0.0","reflect-metadata":"^0.2.1"},"peerDependenciesMeta":{"@nestjs/common":{"optional":false},"@nestjs/core":{"optional":false},"@nestjs/throttler":{"optional":false},"ioredis":{"optional":false},"reflect-metadata":{"optional":false}},"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","types":"./src/index.d.ts","_id":"@nest-lab/throttler-storage-redis@1.1.1","bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"homepage":"https://github.com/jmcdo29/nest-lab#readme","_integrity":"sha512-txwXGAHpMHptnyTxep50K7kfXEPVlwyYMG81y/ghWB9ZdUqCgyl+G/n0kAWm4uevWPD0K2hjdkVwUmg76/d5qg==","_resolved":"/tmp/6cad675bba77c04e68d7ba067929498f/nest-lab-throttler-storage-redis-1.1.1.tgz","_from":"file:nest-lab-throttler-storage-redis-1.1.1.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-txwXGAHpMHptnyTxep50K7kfXEPVlwyYMG81y/ghWB9ZdUqCgyl+G/n0kAWm4uevWPD0K2hjdkVwUmg76/d5qg==","shasum":"6f7d9b288ac941c4dae314bcb93fa21fdbe4af8c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nest-lab/throttler-storage-redis/-/throttler-storage-redis-1.1.1.tgz","fileCount":15,"unpackedSize":12604,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nest-lab%2fthrottler-storage-redis@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICEvWNSkrFFPgenEBb35vbHKDtHzOuiyv3FaPcNUCI5JAiAKe4JLLrMtQih/ZrBdD9FY/F2OhztLxgrBMdNTpbymgA=="}],"size":4149},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b1e205e4-adb9-4d33-af6e-791a7aeeb262"}},"directories":{},"maintainers":[{"name":"anonymous","email":"jmcdo29@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/throttler-storage-redis_1.1.1_1770138483491_0.3905233558103274"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-03T17:08:03.643Z","publish_time":1770138483643,"_source_registry_name":"default","contributors":[]},"1.2.0":{"name":"@nest-lab/throttler-storage-redis","description":"Redis storage provider for the @nestjs/throttler package","version":"1.2.0","keywords":["nestjs","rate-limit","throttle","express","fastify","redis"],"repository":{"type":"github","url":"git+https://github.com/jmcdo29/nest-lab.git","directory":"packages/throttler-storage-redis"},"private":false,"license":"MIT","dependencies":{"tslib":"^2.3.0"},"devDependencies":{"ioredis":"5.4.1"},"peerDependencies":{"@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/throttler":">=6.0.0","ioredis":">=5.0.0","reflect-metadata":"^0.2.1"},"peerDependenciesMeta":{"@nestjs/common":{"optional":false},"@nestjs/core":{"optional":false},"@nestjs/throttler":{"optional":false},"ioredis":{"optional":false},"reflect-metadata":{"optional":false}},"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","types":"./src/index.d.ts","_id":"@nest-lab/throttler-storage-redis@1.2.0","bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"homepage":"https://github.com/jmcdo29/nest-lab#readme","_integrity":"sha512-tMkUyo68NCKTR+zILk+EC35SMYBtDPZY2mCj7ZaCietWGVTnuP4zwq9ERYfvU6kJv6h8teNZrC6MJCmY6/dljw==","_resolved":"/tmp/f055a019c9cf48a3dfc8e087362fddd4/nest-lab-throttler-storage-redis-1.2.0.tgz","_from":"file:nest-lab-throttler-storage-redis-1.2.0.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-tMkUyo68NCKTR+zILk+EC35SMYBtDPZY2mCj7ZaCietWGVTnuP4zwq9ERYfvU6kJv6h8teNZrC6MJCmY6/dljw==","shasum":"d4b5615da833ca2777ba66049fa78c530fac0ffd","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@nest-lab/throttler-storage-redis/-/throttler-storage-redis-1.2.0.tgz","fileCount":15,"unpackedSize":12807,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nest-lab%2fthrottler-storage-redis@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDUhRcMdwJ4TTy9+mfxX3ihzoFhviNAHcLRyytIpA6M+AiEAhE94UStZoteaRiHQ5mCgybSq2fvQg9/q4ZWev6H+yrY="}],"size":4226},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b1e205e4-adb9-4d33-af6e-791a7aeeb262"}},"directories":{},"maintainers":[{"name":"anonymous","email":"jmcdo29@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/throttler-storage-redis_1.2.0_1770138955329_0.2909438613332369"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-03T17:15:55.465Z","publish_time":1770138955465,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.2.0"},"name":"@nest-lab/throttler-storage-redis","time":{"created":"2024-08-27T03:12:01.686Z","modified":"2026-02-03T17:16:05.921Z","1.0.0":"2024-08-26T13:40:59.838Z","1.1.0":"2025-01-23T17:56:11.535Z","1.1.1":"2026-02-03T17:08:03.643Z","1.2.0":"2026-02-03T17:15:55.465Z"},"readme":"# NestJS Throttler Redis Storage\n\nRedis storage provider for the\n[@nestjs/throttler](https://github.com/nestjs/throttler) package.\n\n# Installation\n\n### Yarn\n\n- `yarn add @nest-lab/throttler-storage-redis ioredis`\n\n### NPM\n\n- `npm install --save @nest-lab/throttler-storage-redis ioredis`\n\n# Usage\n\nBasic usage:\n\n```ts\nimport { ThrottlerModule, seconds } from '@nestjs/throttler';\nimport { ThrottlerStorageRedisService } from '@nest-lab/throttler-storage-redis';\nimport Redis from 'ioredis';\n\n@Module({\n  imports: [\n    ThrottlerModule.forRoot({\n      throttlers: [{ limit: 5, ttl: seconds(60) }],\n\n      // Below are possible options on how to configure the storage service.\n\n      // default config (host = localhost, port = 6379)\n      storage: new ThrottlerStorageRedisService(),\n\n      // connection url\n      storage: new ThrottlerStorageRedisService('redis://'),\n\n      // redis object\n      storage: new ThrottlerStorageRedisService(new Redis()),\n\n      // redis clusters\n      storage: new ThrottlerStorageRedisService(\n        new Redis.Cluster(nodes, options)\n      ),\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\nInject another config module and service:\n\n```ts\nimport { ThrottlerModule } from '@nestjs/throttler';\nimport { ThrottlerStorageRedisService } from '@nest-lab/throttler-storage-redis';\n\n@Module({\n  imports: [\n    ThrottlerModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => ({\n        throttlers: [\n          {\n            ttl: config.get('THROTTLE_TTL'),\n            limit: config.get('THROTTLE_LIMIT'),\n          },\n        ],\n        storage: new ThrottlerStorageRedisService(),\n      }),\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\n# Issues\n\nBugs and features related to the redis implementation are welcome in this\nrepository.\n\n# License\n\nNestJS Throttler Redis Storage is licensed under the MIT license.","users":{}}