{"_id":"@nest-lab/throttler-storage-redis","_rev":"4-834c9479119f6cbfedabd109976ac569","name":"@nest-lab/throttler-storage-redis","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@nest-lab/throttler-storage-redis","version":"1.0.0","keywords":["nestjs","rate-limit","throttle","express","fastify","redis"],"license":"MIT","_id":"@nest-lab/throttler-storage-redis@1.0.0","maintainers":[{"name":"jmcdo29","email":"jmcdo29@gmail.com"}],"homepage":"https://github.com/jmcdo29/nest-lab#readme","bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"dist":{"shasum":"f1d8edaec6057c25b4d4d0241d85670f1f32abf9","tarball":"https://registry.npmjs.org/@nest-lab/throttler-storage-redis/-/throttler-storage-redis-1.0.0.tgz","fileCount":15,"integrity":"sha512-k0eVe1yzTF8kgi5xQ+httwVBsNGDcq2liBLYK++ROpqiHUb7QxXet3JgERTQ4PWusyacPKz5DCtw9ijmGBx5YQ==","signatures":[{"sig":"MEUCIGcCaMvAtqj0O/HV3fb0deMS6GAugDqwDwkhyOE3xUVDAiEAhf6R6+L30QlAvL3vtF2dLNrJSzX1auk8xInNsAg+FFs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12710},"main":"./src/index.js","type":"commonjs","_from":"file:nest-lab-throttler-storage-redis-1.0.0.tgz","types":"./src/index.d.ts","private":false,"typings":"./src/index.d.ts","_npmUser":{"name":"jmcdo29","email":"jmcdo29@gmail.com"},"_resolved":"/tmp/90bfa002e7aa87389c6e4d5044ab5ed7/nest-lab-throttler-storage-redis-1.0.0.tgz","_integrity":"sha512-k0eVe1yzTF8kgi5xQ+httwVBsNGDcq2liBLYK++ROpqiHUb7QxXet3JgERTQ4PWusyacPKz5DCtw9ijmGBx5YQ==","repository":{"url":"git+https://github.com/jmcdo29/nest-lab.git","type":"github","directory":"packages/throttler-storage-redis"},"_npmVersion":"10.7.0","description":"Redis storage provider for the @nestjs/throttler package","directories":{},"_nodeVersion":"18.20.4","dependencies":{"tslib":"^2.3.0"},"_hasShrinkwrap":false,"devDependencies":{"ioredis":"5.4.1","@nestjs/testing":"10.4.1","@nestjs/platform-express":"10.4.1","@nestjs/platform-fastify":"10.4.1"},"peerDependencies":{"ioredis":">=5.0.0","@nestjs/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0","@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0","reflect-metadata":"^0.2.1","@nestjs/throttler":">=6.0.0"},"peerDependenciesMeta":{"ioredis":{"optional":false},"@nestjs/core":{"optional":false},"@nestjs/common":{"optional":false},"reflect-metadata":{"optional":false},"@nestjs/throttler":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/throttler-storage-redis_1.0.0_1724679659693_0.9415878812904104","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@nest-lab/throttler-storage-redis","version":"1.1.0","keywords":["nestjs","rate-limit","throttle","express","fastify","redis"],"license":"MIT","_id":"@nest-lab/throttler-storage-redis@1.1.0","maintainers":[{"name":"jmcdo29","email":"jmcdo29@gmail.com"}],"homepage":"https://github.com/jmcdo29/nest-lab#readme","bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"dist":{"shasum":"78f3dad83dbf6f890f27ce3f323b4a1e5f33e227","tarball":"https://registry.npmjs.org/@nest-lab/throttler-storage-redis/-/throttler-storage-redis-1.1.0.tgz","fileCount":15,"integrity":"sha512-7DW8MuqoB+ubu8cWby9Vw56eAFqsHFfowEflHbmmAF2sNByRdzcR4ddcyoYLwL3zG53nLmvzUa4EXoHKB4RoaQ==","signatures":[{"sig":"MEQCIAru0IeNenLgwbj9etf2jVcgs0ThchG0OJGaI0WX73VsAiBiwDcbbKzMHsNV0FN8zVjCuPL5/pg6lnOgP8AyFNre4A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12682},"main":"./src/index.js","type":"commonjs","_from":"file:nest-lab-throttler-storage-redis-1.1.0.tgz","types":"./src/index.d.ts","private":false,"typings":"./src/index.d.ts","_npmUser":{"name":"jmcdo29","email":"jmcdo29@gmail.com"},"_resolved":"/tmp/739939998884298d16bb0cd662569a83/nest-lab-throttler-storage-redis-1.1.0.tgz","_integrity":"sha512-7DW8MuqoB+ubu8cWby9Vw56eAFqsHFfowEflHbmmAF2sNByRdzcR4ddcyoYLwL3zG53nLmvzUa4EXoHKB4RoaQ==","repository":{"url":"git+https://github.com/jmcdo29/nest-lab.git","type":"github","directory":"packages/throttler-storage-redis"},"_npmVersion":"10.8.2","description":"Redis storage provider for the @nestjs/throttler package","directories":{},"_nodeVersion":"18.20.5","dependencies":{"tslib":"^2.3.0"},"_hasShrinkwrap":false,"devDependencies":{"ioredis":"5.4.1"},"peerDependencies":{"ioredis":">=5.0.0","@nestjs/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","reflect-metadata":"^0.2.1","@nestjs/throttler":">=6.0.0"},"peerDependenciesMeta":{"ioredis":{"optional":false},"@nestjs/core":{"optional":false},"@nestjs/common":{"optional":false},"reflect-metadata":{"optional":false},"@nestjs/throttler":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/throttler-storage-redis_1.1.0_1737654971360_0.7681962143205292","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@nest-lab/throttler-storage-redis","version":"1.1.1","keywords":["nestjs","rate-limit","throttle","express","fastify","redis"],"license":"MIT","_id":"@nest-lab/throttler-storage-redis@1.1.1","maintainers":[{"name":"jmcdo29","email":"jmcdo29@gmail.com"}],"homepage":"https://github.com/jmcdo29/nest-lab#readme","bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"dist":{"shasum":"6f7d9b288ac941c4dae314bcb93fa21fdbe4af8c","tarball":"https://registry.npmjs.org/@nest-lab/throttler-storage-redis/-/throttler-storage-redis-1.1.1.tgz","fileCount":15,"integrity":"sha512-txwXGAHpMHptnyTxep50K7kfXEPVlwyYMG81y/ghWB9ZdUqCgyl+G/n0kAWm4uevWPD0K2hjdkVwUmg76/d5qg==","signatures":[{"sig":"MEQCICEvWNSkrFFPgenEBb35vbHKDtHzOuiyv3FaPcNUCI5JAiAKe4JLLrMtQih/ZrBdD9FY/F2OhztLxgrBMdNTpbymgA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@nest-lab%2fthrottler-storage-redis@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12604},"main":"./src/index.js","type":"commonjs","_from":"file:nest-lab-throttler-storage-redis-1.1.1.tgz","types":"./src/index.d.ts","private":false,"typings":"./src/index.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b1e205e4-adb9-4d33-af6e-791a7aeeb262"}},"_resolved":"/tmp/6cad675bba77c04e68d7ba067929498f/nest-lab-throttler-storage-redis-1.1.1.tgz","_integrity":"sha512-txwXGAHpMHptnyTxep50K7kfXEPVlwyYMG81y/ghWB9ZdUqCgyl+G/n0kAWm4uevWPD0K2hjdkVwUmg76/d5qg==","repository":{"url":"git+https://github.com/jmcdo29/nest-lab.git","type":"github","directory":"packages/throttler-storage-redis"},"_npmVersion":"11.8.0","description":"Redis storage provider for the @nestjs/throttler package","directories":{},"_nodeVersion":"24.13.0","dependencies":{"tslib":"^2.3.0"},"_hasShrinkwrap":false,"devDependencies":{"ioredis":"5.4.1"},"peerDependencies":{"ioredis":">=5.0.0","@nestjs/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","@nestjs/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0","reflect-metadata":"^0.2.1","@nestjs/throttler":">=6.0.0"},"peerDependenciesMeta":{"ioredis":{"optional":false},"@nestjs/core":{"optional":false},"@nestjs/common":{"optional":false},"reflect-metadata":{"optional":false},"@nestjs/throttler":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/throttler-storage-redis_1.1.1_1770138483491_0.3905233558103274","host":"s3://npm-registry-packages-npm-production"}},"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":"https://registry.npmjs.org/@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="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b1e205e4-adb9-4d33-af6e-791a7aeeb262"}},"directories":{},"maintainers":[{"name":"jmcdo29","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}},"time":{"created":"2024-08-26T13:40:59.561Z","modified":"2026-02-03T17:15:55.767Z","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"},"bugs":{"url":"https://github.com/jmcdo29/nest-lab/issues"},"license":"MIT","homepage":"https://github.com/jmcdo29/nest-lab#readme","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"},"description":"Redis storage provider for the @nestjs/throttler package","maintainers":[{"name":"jmcdo29","email":"jmcdo29@gmail.com"}],"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.\n","readmeFilename":"README.md"}