nikolaposa / rate-limit

🚔 General purpose rate limiter implementation.
MIT License
271 stars 47 forks source link

Redis #33

Closed cubecleveland closed 4 years ago

cubecleveland commented 4 years ago

Hi, How do i set up the redis credentials to log into redis servere ? Also, does the redis connection perssist over calls... what if i already opend a redis connection in the code somewhare can i just pass the connection handle ?

nikolaposa commented 4 years ago

How do i set up the redis credentials to log into redis servere

That is completely up to your application and how you configure services.

what if i already opend a redis connection in the code somewhare can i just pass the connection handle

Yes, you can pass the existing, connected Redis instance to RedisRateLimiter.