api: add support for redis to ratelimiter cache

This commit is contained in:
jj
2024-11-01 13:26:18 +00:00
parent d466f8a4af
commit 2317da5ba5
4 changed files with 39 additions and 1 deletions

14
pnpm-lock.yaml generated
View File

@@ -71,6 +71,9 @@ importers:
freebind:
specifier: ^0.2.2
version: 0.2.2
rate-limit-redis:
specifier: ^4.2.0
version: 4.2.0(express-rate-limit@7.4.1(express@4.21.0))
redis:
specifier: ^4.7.0
version: 4.7.0
@@ -1877,6 +1880,12 @@ packages:
resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}
engines: {node: '>= 0.6'}
rate-limit-redis@4.2.0:
resolution: {integrity: sha512-wV450NQyKC24NmPosJb2131RoczLdfIJdKCReNwtVpm5998U8SgKrAZrIHaN/NfQgqOHaan8Uq++B4sa5REwjA==}
engines: {node: '>= 16'}
peerDependencies:
express-rate-limit: '>= 6'
raw-body@2.5.2:
resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==}
engines: {node: '>= 0.8'}
@@ -3868,6 +3877,11 @@ snapshots:
range-parser@1.2.1: {}
rate-limit-redis@4.2.0(express-rate-limit@7.4.1(express@4.21.0)):
dependencies:
express-rate-limit: 7.4.1(express@4.21.0)
optional: true
raw-body@2.5.2:
dependencies:
bytes: 3.1.2