Skip to content

Commit 087c9cc

Browse files
Merge pull request #2046 from bttger/patch-2
docs(security): add community storage provider redis
2 parents 16de88b + 966c7db commit 087c9cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/security/rate-limiting.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,6 @@ This is doable, as long as `ThrottlerConfigService` implements the interface `Th
170170

171171
The built in storage is an in memory cache that keeps track of the requests made until they have passed the TTL set by the global options. You can drop in your own storage option to the `storage` option of the `ThrottlerModule` so long as the class implements the `ThrottlerStorage` interface.
172172

173+
For distributed servers you could use the community storage provider for [Redis](https://github.com/kkoomen/nestjs-throttler-storage-redis) to have a single source of truth.
174+
173175
> info **Note** `ThrottlerStorage` can be imported from `@nestjs/throttler`.

0 commit comments

Comments
 (0)