abersheeran / asgi-ratelimit

A ASGI Middleware to rate limit
Apache License 2.0
292 stars 11 forks source link

feature: Redis, more params to support ssl connect #59

Closed a-yangyi closed 2 years ago

a-yangyi commented 2 years ago

By now when 'ssl=true', there is no more param to give for ssl details, like 'ssl_keyfile'/'ssl_certfile'.

reference: https://github.com/aio-libs/aioredis-py/blob/master/aioredis/client.py line850-855 (also support in redis 4.2.0rc1+)

euri10 commented 2 years ago

we could indeed pass **kwargs to the constructor of our backends that use StrictRedis

a-yangyi commented 2 years ago

try to user RedisBackend() but can only give 5 params or can i get a ssl verison demo? thx